mirror of
https://github.com/python/cpython.git
synced 2026-01-06 15:32:22 +00:00
Fix tests now that the callable warning is gone.
This commit is contained in:
parent
a5ae1f0c25
commit
152d61aa5b
2 changed files with 2 additions and 4 deletions
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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)):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue