mirror of
https://github.com/python/cpython.git
synced 2025-10-09 16:34:44 +00:00
There always is a False and True now.
This commit is contained in:
parent
4f85ae10f5
commit
a8867b4173
1 changed files with 2 additions and 4 deletions
|
@ -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"],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue