summaryrefslogtreecommitdiffstats
path: root/test/MSVC
diff options
context:
space:
mode:
authorMats Wichmann <mats@linux.com>2019-02-11 17:13:15 (GMT)
committerMats Wichmann <mats@linux.com>2019-02-11 17:13:15 (GMT)
commit325bf16d681320cc277fb65c873cae2e0a2cb46c (patch)
treeff35bf89f35e93dec56087b46a9ff7bb25d30758 /test/MSVC
parente452818853109597317e6525ff5cf2151e55e70b (diff)
downloadSCons-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.py4
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()