]> granicus.if.org Git - python/commitdiff
Fix tests now that the callable warning is gone.
authorEzio Melotti <ezio.melotti@gmail.com>
Sun, 6 Nov 2011 15:17:52 +0000 (17:17 +0200)
committerEzio Melotti <ezio.melotti@gmail.com>
Sun, 6 Nov 2011 15:17:52 +0000 (17:17 +0200)
Lib/test/test_bool.py
Lib/test/test_builtin.py

index 9d58a2e72636af427d8b4669efb0617237764a10..16cd1aa1ff80510ff6c74cc5720408c5438249c8 100644 (file)
@@ -180,9 +180,8 @@ class BoolTest(unittest.TestCase):
         self.assertIs(hasattr([], "wobble"), False)
 
     def test_callable(self):
-        with test_support.check_py3k_warnings():
-            self.assertIs(callable(len), True)
-            self.assertIs(callable(1), False)
+        self.assertIs(callable(len), True)
+        self.assertIs(callable(1), False)
 
     def test_isinstance(self):
         self.assertIs(isinstance(True, bool), True)
index ae3a67c59467443dffbe90a5210820d6d0be89d9..1d35a6afe574a27bf39578efed0d9345c1aa41f1 100644 (file)
@@ -1683,7 +1683,6 @@ class TestSorted(unittest.TestCase):
 
 def _run_unittest(*args):
     with check_py3k_warnings(
-            (".+ not supported in 3.1", DeprecationWarning),
             (".+ not supported in 3.x", DeprecationWarning),
             (".+ is renamed to imp.reload", DeprecationWarning),
             ("classic int division", DeprecationWarning)):