]> granicus.if.org Git - python/commitdiff
There always is a False and True now.
authorGeorg Brandl <georg@python.org>
Sat, 31 Jul 2010 21:26:40 +0000 (21:26 +0000)
committerGeorg Brandl <georg@python.org>
Sat, 31 Jul 2010 21:26:40 +0000 (21:26 +0000)
Lib/test/test_optparse.py

index 183a9df1157dfb70a661b781c5969f273c22d756..2dc28edcd0aee2e394b1daa9be63a20a976f4800 100644 (file)
@@ -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"],