diff options
author | Greg Noel <GregNoel@tigris.org> | 2009-05-03 06:24:01 (GMT) |
---|---|---|
committer | Greg Noel <GregNoel@tigris.org> | 2009-05-03 06:24:01 (GMT) |
commit | ff74e256dccabac534aa952431063a23dfae9ac2 (patch) | |
tree | e50f626c5c42ff28c3cd21ab63f167627d08d7d4 /src/engine/SCons/Node/AliasTests.py | |
parent | 940ba4016c26bc49bdcb4e48bdd6b8b541e2aa1f (diff) | |
download | SCons-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/Node/AliasTests.py')
-rw-r--r-- | src/engine/SCons/Node/AliasTests.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/engine/SCons/Node/AliasTests.py b/src/engine/SCons/Node/AliasTests.py index 184e710..82322e3 100644 --- a/src/engine/SCons/Node/AliasTests.py +++ b/src/engine/SCons/Node/AliasTests.py @@ -35,7 +35,7 @@ class AliasTestCase(unittest.TestCase): """Test creating an Alias name space """ ans = SCons.Node.Alias.AliasNameSpace() - assert not ans is None, ans + assert ans is not None, ans def test_ANS_Alias(self): """Test the Alias() factory @@ -82,7 +82,7 @@ class AliasTestCase(unittest.TestCase): assert a is a1, a1 a = ans.lookup('a2') - assert a == None, a + assert a is None, a def test_Alias(self): """Test creating an Alias() object |