[Python-checkins] r83576 - python/branches/release26-maint/Lib/test/test_bool.py
ezio.melotti
python-checkins at python.org
Mon Aug 2 22:52:47 CEST 2010
Author: ezio.melotti
Date: Mon Aug 2 22:52:47 2010
New Revision: 83576
Log:
Fix test_bool. operator.isCallable() doesn't raise a warning on 2.6.
Modified:
python/branches/release26-maint/Lib/test/test_bool.py
Modified: python/branches/release26-maint/Lib/test/test_bool.py
==============================================================================
--- python/branches/release26-maint/Lib/test/test_bool.py (original)
+++ python/branches/release26-maint/Lib/test/test_bool.py Mon Aug 2 22:52:47 2010
@@ -261,9 +261,8 @@
import operator
self.assertIs(operator.truth(0), False)
self.assertIs(operator.truth(1), True)
- with test_support._check_py3k_warnings():
- self.assertIs(operator.isCallable(0), False)
- self.assertIs(operator.isCallable(len), True)
+ self.assertIs(operator.isCallable(0), False)
+ self.assertIs(operator.isCallable(len), True)
self.assertIs(operator.isNumberType(None), False)
self.assertIs(operator.isNumberType(0), True)
self.assertIs(operator.not_(1), False)
More information about the Python-checkins
mailing list