]> granicus.if.org Git - python/commitdiff
#17142: fix apparent copy and paste error in test_all.
authorR David Murray <rdmurray@bitdance.com>
Wed, 6 Feb 2013 14:56:19 +0000 (09:56 -0500)
committerR David Murray <rdmurray@bitdance.com>
Wed, 6 Feb 2013 14:56:19 +0000 (09:56 -0500)
Lib/test/test_builtin.py

index dab56cefd82462732cfc66f99f6b48e53c01dd89..42a1e35f16441d8d2464039c7db6c8f1770e9332 100644 (file)
@@ -164,7 +164,7 @@ class BuiltinTest(unittest.TestCase):
         self.assertEqual(any([None, None, None]), False)
         self.assertEqual(any([None, 4, None]), True)
         self.assertRaises(RuntimeError, any, [None, TestFailingBool(), 6])
-        self.assertRaises(RuntimeError, all, TestFailingIter())
+        self.assertRaises(RuntimeError, any, TestFailingIter())
         self.assertRaises(TypeError, any, 10)               # Non-iterable
         self.assertRaises(TypeError, any)                   # No args
         self.assertRaises(TypeError, any, [2, 4, 6], [])    # Too many args