Commit d9a4e29d authored by Ezio Melotti's avatar Ezio Melotti

Fix test_operator.

parent c31cbbdb
......@@ -192,8 +192,8 @@ class OperatorTestCase(unittest.TestCase):
class C:
pass
def check(self, o, v):
with test_support._check_py3k_warnings():
self.assertEqual(operator.isCallable(o), v)
with test_support._check_py3k_warnings():
self.assertEqual(callable(o), v)
check(self, 4, 0)
check(self, operator.isCallable, 1)
......@@ -308,7 +308,6 @@ class OperatorTestCase(unittest.TestCase):
self.assertRaises(TypeError, operator.contains, None, None)
self.assertTrue(operator.contains(range(4), 2))
self.assertFalse(operator.contains(range(4), 5))
with test_support._check_py3k_warnings():
self.assertTrue(operator.sequenceIncludes(range(4), 2))
self.assertFalse(operator.sequenceIncludes(range(4), 5))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment