Commit a8867b41 authored by Georg Brandl's avatar Georg Brandl

There always is a False and True now.

parent 4f85ae10
...@@ -781,14 +781,12 @@ class TestBool(BaseTest): ...@@ -781,14 +781,12 @@ class TestBool(BaseTest):
(options, args) = self.assertParseOK(["-q"], (options, args) = self.assertParseOK(["-q"],
{'verbose': 0}, {'verbose': 0},
[]) [])
if hasattr(__builtins__, 'False'):
self.assertTrue(options.verbose is False) self.assertTrue(options.verbose is False)
def test_bool_true(self): def test_bool_true(self):
(options, args) = self.assertParseOK(["-v"], (options, args) = self.assertParseOK(["-v"],
{'verbose': 1}, {'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): def test_bool_flicker_on_and_off(self):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment