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/Variables/BoolVariableTests.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/Variables/BoolVariableTests.py')
| -rw-r--r-- | src/engine/SCons/Variables/BoolVariableTests.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/engine/SCons/Variables/BoolVariableTests.py b/src/engine/SCons/Variables/BoolVariableTests.py index 88f64ed..8ffb079 100644 --- a/src/engine/SCons/Variables/BoolVariableTests.py +++ b/src/engine/SCons/Variables/BoolVariableTests.py @@ -39,8 +39,8 @@ class BoolVariableTestCase(unittest.TestCase): assert o.key == 'test', o.key assert o.help == 'test option help (yes|no)', o.help assert o.default == 0, o.default - assert not o.validator is None, o.validator - assert not o.converter is None, o.converter + assert o.validator is not None, o.validator + assert o.converter is not None, o.converter def test_converter(self): """Test the BoolVariable converter""" |
