summaryrefslogtreecommitdiffstats
path: root/src/engine/SCons/BuilderTests.py
diff options
context:
space:
mode:
authorGreg Noel <GregNoel@tigris.org>2009-05-03 06:24:01 (GMT)
committerGreg Noel <GregNoel@tigris.org>2009-05-03 06:24:01 (GMT)
commitff74e256dccabac534aa952431063a23dfae9ac2 (patch)
treee50f626c5c42ff28c3cd21ab63f167627d08d7d4 /src/engine/SCons/BuilderTests.py
parent940ba4016c26bc49bdcb4e48bdd6b8b541e2aa1f (diff)
downloadSCons-ff74e256dccabac534aa952431063a23dfae9ac2.zip
SCons-ff74e256dccabac534aa952431063a23dfae9ac2.tar.gz
SCons-ff74e256dccabac534aa952431063a23dfae9ac2.tar.bz2
Issue 2401: Fix usage of comparison with None, patch from Jared Grubb
Diffstat (limited to 'src/engine/SCons/BuilderTests.py')
-rw-r--r--src/engine/SCons/BuilderTests.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/engine/SCons/BuilderTests.py b/src/engine/SCons/BuilderTests.py
index 8bb4169..b72b133 100644
--- a/src/engine/SCons/BuilderTests.py
+++ b/src/engine/SCons/BuilderTests.py
@@ -1108,7 +1108,7 @@ class BuilderTestCase(unittest.TestCase):
r = builder.get_prefix(env)
assert r == 'A_', r
r = builder.get_suffix(env)
- assert r == None, r
+ assert r is None, r
r = builder.get_src_suffix(env)
assert r == '', r
r = builder.src_suffixes(env)
@@ -1127,9 +1127,9 @@ class BuilderTestCase(unittest.TestCase):
r = builder.get_prefix(env)
assert r == 'A_', r
r = builder.get_suffix(env)
- assert r == None, r
+ assert r is None, r
r = builder.get_suffix(env, [MyNode('X.src_sfx1')])
- assert r == None, r
+ assert r is None, r
r = builder.get_src_suffix(env)
assert r == '.src_sfx1', r
r = builder.src_suffixes(env)
@@ -1145,7 +1145,7 @@ class BuilderTestCase(unittest.TestCase):
r = builder.get_prefix(env)
assert r == 'A_', r
r = builder.get_suffix(env)
- assert r == None, r
+ assert r is None, r
r = builder.get_src_suffix(env)
assert r == '.src_sfx1', r
r = builder.src_suffixes(env)