diff options
| author | Ezio Melotti <ezio.melotti@gmail.com> | 2010-08-02 20:52:47 (GMT) |
|---|---|---|
| committer | Ezio Melotti <ezio.melotti@gmail.com> | 2010-08-02 20:52:47 (GMT) |
| commit | fc521498bbaf92c2920cca026ca69424298bd9d7 (patch) | |
| tree | f11a9a0f2e553f3449f71873d3d80d6193a6adb8 /Lib/test | |
| parent | 5ee50bba6b96c39ef775664a535c61c27b8e869f (diff) | |
| download | cpython-fc521498bbaf92c2920cca026ca69424298bd9d7.zip cpython-fc521498bbaf92c2920cca026ca69424298bd9d7.tar.gz cpython-fc521498bbaf92c2920cca026ca69424298bd9d7.tar.bz2 | |
Fix test_bool. operator.isCallable() doesn't raise a warning on 2.6.
Diffstat (limited to 'Lib/test')
| -rw-r--r-- | Lib/test/test_bool.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Lib/test/test_bool.py b/Lib/test/test_bool.py index 150dc31..680a40f 100644 --- a/Lib/test/test_bool.py +++ b/Lib/test/test_bool.py @@ -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) |
