mirror of
https://github.com/python/cpython.git
synced 2025-10-07 07:31:46 +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,7 +261,6 @@ class BoolTest(unittest.TestCase):
|
||||||
import operator
|
import operator
|
||||||
self.assertIs(operator.truth(0), False)
|
self.assertIs(operator.truth(0), False)
|
||||||
self.assertIs(operator.truth(1), True)
|
self.assertIs(operator.truth(1), True)
|
||||||
with test_support._check_py3k_warnings():
|
|
||||||
self.assertIs(operator.isCallable(0), False)
|
self.assertIs(operator.isCallable(0), False)
|
||||||
self.assertIs(operator.isCallable(len), True)
|
self.assertIs(operator.isCallable(len), True)
|
||||||
self.assertIs(operator.isNumberType(None), False)
|
self.assertIs(operator.isNumberType(None), False)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue