diff options
author | Mats Wichmann <mats@linux.com> | 2019-02-11 17:13:15 (GMT) |
---|---|---|
committer | Mats Wichmann <mats@linux.com> | 2019-02-11 17:13:15 (GMT) |
commit | 325bf16d681320cc277fb65c873cae2e0a2cb46c (patch) | |
tree | ff35bf89f35e93dec56087b46a9ff7bb25d30758 /testing | |
parent | e452818853109597317e6525ff5cf2151e55e70b (diff) | |
download | SCons-325bf16d681320cc277fb65c873cae2e0a2cb46c.zip SCons-325bf16d681320cc277fb65c873cae2e0a2cb46c.tar.gz SCons-325bf16d681320cc277fb65c873cae2e0a2cb46c.tar.bz2 |
Fix is/is not syntax
In a few places, "is" and "is not" are used to compare with
a string or integer literal. Python 3.8 flags these with
a SyntaxWarning. Changed to == and !=
Signed-off-by: Mats Wichmann <mats@linux.com>
Diffstat (limited to 'testing')
-rw-r--r-- | testing/framework/TestCmd.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/testing/framework/TestCmd.py b/testing/framework/TestCmd.py index 35e3613..a6a8045 100644 --- a/testing/framework/TestCmd.py +++ b/testing/framework/TestCmd.py @@ -1227,7 +1227,7 @@ class TestCmd(object): the temporary working directories to be preserved for all conditions. """ - if conditions is (): + if not conditions: conditions = ('pass_test', 'fail_test', 'no_result') for cond in conditions: self._preserve[cond] = 1 |