Skip to content

Commit 8737fb3

Browse files
authored
Merge d14916d into 53c8e10
2 parents 53c8e10 + d14916d commit 8737fb3

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

source/setup.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# -*- coding: UTF-8 -*-
22
# A part of NonVisual Desktop Access (NVDA)
3-
# Copyright (C) 2006-2023 NV Access Limited, Peter Vágner, Joseph Lee
3+
# Copyright (C) 2006-2024 NV Access Limited, Peter Vágner, Joseph Lee
44
# This file is covered by the GNU General Public License.
55
# See the file COPYING for more details.
66

@@ -17,6 +17,7 @@
1717
copyright as NVDAcopyright, # copyright is a reserved python keyword
1818
description,
1919
formatBuildVersionString,
20+
isTestVersion,
2021
name,
2122
publisher,
2223
version,
@@ -175,7 +176,8 @@ def _genManifestTemplate(shouldHaveUIAccess: bool) -> tuple[int, int, bytes]:
175176
],
176177
options={
177178
"verbose": 2,
178-
"optimize": 0,
179+
# Only raise errors on assertions for test builds.
180+
"optimize": 0 if isTestVersion else 1,
179181
"bundle_files": 3,
180182
"dist_dir": "../dist",
181183
"excludes": [

0 commit comments

Comments
 (0)