[Python-checkins] r83366 - python/branches/py3k/Lib/test/test_optparse.py
georg.brandl
python-checkins at python.org
Sat Jul 31 23:26:40 CEST 2010
Author: georg.brandl
Date: Sat Jul 31 23:26:40 2010
New Revision: 83366
Log:
There always is a False and True now.
Modified:
python/branches/py3k/Lib/test/test_optparse.py
Modified: python/branches/py3k/Lib/test/test_optparse.py
==============================================================================
--- python/branches/py3k/Lib/test/test_optparse.py (original)
+++ python/branches/py3k/Lib/test/test_optparse.py Sat Jul 31 23:26:40 2010
@@ -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"],
More information about the Python-checkins
mailing list