summaryrefslogtreecommitdiffstats
path: root/testing/framework
diff options
context:
space:
mode:
authorWilliam Deegan <bill@baddogconsulting.com>2020-07-19 19:21:29 (GMT)
committerGitHub <noreply@github.com>2020-07-19 19:21:29 (GMT)
commit261a39beb80b064793009f4ec9a5b367fb5b93bb (patch)
treeac9de2fd74f602fb737d88f60abbb8ad58a2202d /testing/framework
parente094261347cb44e6bcac21e5220f5573e53fa0c8 (diff)
parent30dacfe948314ae820a8d273234956d93d8065dc (diff)
downloadSCons-261a39beb80b064793009f4ec9a5b367fb5b93bb.zip
SCons-261a39beb80b064793009f4ec9a5b367fb5b93bb.tar.gz
SCons-261a39beb80b064793009f4ec9a5b367fb5b93bb.tar.bz2
Merge pull request #3731 from mwichmann/warn-to-sconswarn
Change Warning to SConsWarning
Diffstat (limited to 'testing/framework')
-rw-r--r--testing/framework/TestSCons.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/testing/framework/TestSCons.py b/testing/framework/TestSCons.py
index 9e2783f..a7eb4c5 100644
--- a/testing/framework/TestSCons.py
+++ b/testing/framework/TestSCons.py
@@ -188,7 +188,7 @@ def initialize_sconsflags(ignore_python_version):
# support the --warn=no-visual-c-missing warning.)
visual_c = os.environ.get('TESTSCONS_SCONSFLAGS',
'--warn=no-visual-c-missing')
- if visual_c:
+ if visual_c and visual_c not in sconsflags:
sconsflags.append(visual_c)
os.environ['SCONSFLAGS'] = ' '.join(sconsflags)
return save_sconsflags