diff options
author | Mats Wichmann <mats@linux.com> | 2020-07-07 14:38:45 (GMT) |
---|---|---|
committer | Mats Wichmann <mats@linux.com> | 2020-07-07 14:38:45 (GMT) |
commit | 30dacfe948314ae820a8d273234956d93d8065dc (patch) | |
tree | bdff729720bee6d39ce8b68578477131bde1e9bb /testing | |
parent | b71dbb402a8e1235564a8127853ba80f688eb073 (diff) | |
download | SCons-30dacfe948314ae820a8d273234956d93d8065dc.zip SCons-30dacfe948314ae820a8d273234956d93d8065dc.tar.gz SCons-30dacfe948314ae820a8d273234956d93d8065dc.tar.bz2 |
[PR #3731] more adjustments to Warnings
Replace the arguments-to-WarningClass converter.
Improve docstrings.
Signed-off-by: Mats Wichmann <mats@linux.com>
Diffstat (limited to 'testing')
-rw-r--r-- | testing/framework/TestSCons.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/testing/framework/TestSCons.py b/testing/framework/TestSCons.py index 9ffae9b..921a93a 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 |