Mercurial > cpython-lru_cache-weakref
diff Lib/test/test_optparse.py @ 63384:263fada2565d
There always is a False and True now.
| author | Georg Brandl <georg@python.org> |
|---|---|
| date | Sat, 31 Jul 2010 21:26:40 +0000 |
| parents | d171276ed76d |
| children | 9fe76c26ea9f |
line wrap: on
line diff
--- a/Lib/test/test_optparse.py Sat Jul 31 21:12:15 2010 +0000 +++ b/Lib/test/test_optparse.py Sat Jul 31 21:26:40 2010 +0000 @@ -781,15 +781,13 @@ (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"],
