diff options
author | Ezio Melotti <ezio.melotti@gmail.com> | 2011-11-06 17:17:52 +0200 |
---|---|---|
committer | Ezio Melotti <ezio.melotti@gmail.com> | 2011-11-06 17:17:52 +0200 |
commit | 152d61aa5b38b83e4017e38f0d326f8df8541b4b (patch) | |
tree | dd4887089ff75482bb31556ab84acd21700c060a | |
parent | a5ae1f0c25212a48dc839de86d9f29312f6c0a3a (diff) | |
download | cpython-git-152d61aa5b38b83e4017e38f0d326f8df8541b4b.tar.gz |
Fix tests now that the callable warning is gone.
-rw-r--r-- | Lib/test/test_bool.py | 5 | ||||
-rw-r--r-- | Lib/test/test_builtin.py | 1 |
2 files changed, 2 insertions, 4 deletions
diff --git a/Lib/test/test_bool.py b/Lib/test/test_bool.py index 9d58a2e726..16cd1aa1ff 100644 --- a/Lib/test/test_bool.py +++ b/Lib/test/test_bool.py @@ -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) diff --git a/Lib/test/test_builtin.py b/Lib/test/test_builtin.py index ae3a67c594..1d35a6afe5 100644 --- a/Lib/test/test_builtin.py +++ b/Lib/test/test_builtin.py @@ -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)): |