mirror of
https://github.com/python/cpython.git
synced 2025-07-24 19:54:21 +00:00
Fix test_bool. operator.isCallable() doesn't raise a warning on 2.6.
This commit is contained in:
parent
5ee50bba6b
commit
fc521498bb
1 changed files with 2 additions and 3 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue