From: Georg Brandl Date: Sat, 31 Jul 2010 21:26:40 +0000 (+0000) Subject: There always is a False and True now. X-Git-Tag: v3.2a2~594 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a8867b4173d03e7c321e9de8be529f3dd7e67abe;p=python There always is a False and True now. --- diff --git a/Lib/test/test_optparse.py b/Lib/test/test_optparse.py index 183a9df115..2dc28edcd0 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"],