]> granicus.if.org Git - python/commitdiff
Fix test_bool. operator.isCallable() doesn't raise a warning on 2.6.
authorEzio Melotti <ezio.melotti@gmail.com>
Mon, 2 Aug 2010 20:52:47 +0000 (20:52 +0000)
committerEzio Melotti <ezio.melotti@gmail.com>
Mon, 2 Aug 2010 20:52:47 +0000 (20:52 +0000)
Lib/test/test_bool.py

index 150dc3124e8fbda94e6df79eac83d58208c97da9..680a40f78adc6702fb044b855a7f9448f81b17fc 100644 (file)
@@ -261,9 +261,8 @@ class BoolTest(unittest.TestCase):
         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)