Fix tests now that the callable warning is gone.

This commit is contained in:
Ezio Melotti 2011-11-06 17:17:52 +02:00
parent a5ae1f0c25
commit 152d61aa5b
2 changed files with 2 additions and 4 deletions

View file

@ -180,9 +180,8 @@ def test_hasattr(self):
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)

View file

@ -1683,7 +1683,6 @@ def test_baddecorator(self):
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)):