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 /test/MSVC | |
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 'test/MSVC')
-rw-r--r-- | test/MSVC/TARGET_ARCH.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/MSVC/TARGET_ARCH.py b/test/MSVC/TARGET_ARCH.py index a960bd8..009909e 100644 --- a/test/MSVC/TARGET_ARCH.py +++ b/test/MSVC/TARGET_ARCH.py @@ -63,7 +63,7 @@ if env.Detect('cl'): env.Command('checkarm', [], 'cl') """ % locals()) test.run(arguments = ".", stderr = None) -if test.stderr().strip() is not "" and "ARM" not in test.stderr(): +if test.stderr().strip() != "" and "ARM" not in test.stderr(): test.fail_test() test.write('SConstruct', """ @@ -73,7 +73,7 @@ if env.Detect('cl'): env.Command('checkarm64', [], 'cl') """ % locals()) test.run(arguments = ".", stderr = None) -if test.stderr().strip() is not "" and "ARM64" not in test.stderr(): +if test.stderr().strip() != "" and "ARM64" not in test.stderr(): test.fail_test() test.pass_test() |