diff options
author | Georg Brandl <georg@python.org> | 2010-07-31 21:26:40 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2010-07-31 21:26:40 (GMT) |
commit | a8867b4173d03e7c321e9de8be529f3dd7e67abe (patch) | |
tree | 17350495423a4153619ce35e8d8f60d400e734aa | |
parent | 4f85ae10f56ff1f69f8c7db3266104d885a7a9c6 (diff) | |
download | cpython-a8867b4173d03e7c321e9de8be529f3dd7e67abe.zip cpython-a8867b4173d03e7c321e9de8be529f3dd7e67abe.tar.gz cpython-a8867b4173d03e7c321e9de8be529f3dd7e67abe.tar.bz2 |
There always is a False and True now.
-rw-r--r-- | Lib/test/test_optparse.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/Lib/test/test_optparse.py b/Lib/test/test_optparse.py index 183a9df..2dc28ed 100644 --- a/Lib/test/test_optparse.py +++ b/Lib/test/test_optparse.py @@ -781,15 +781,13 @@ class TestBool(BaseTest): (options, args) = self.assertParseOK(["-q"], {'verbose': 0}, []) - if hasattr(__builtins__, 'False'): - self.assertTrue(options.verbose is False) + self.assertTrue(options.verbose is False) def test_bool_true(self): (options, args) = self.assertParseOK(["-v"], {'verbose': 1}, []) - if hasattr(__builtins__, 'True'): - self.assertTrue(options.verbose is True) + self.assertTrue(options.verbose is True) def test_bool_flicker_on_and_off(self): self.assertParseOK(["-qvq", "-q", "-v"], |