[Python-checkins] cpython (2.7): #17142: fix apparent copy and paste error in test_all.

r.david.murray python-checkins at python.org
Wed Feb 6 16:06:31 CET 2013


http://hg.python.org/cpython/rev/d0cfabed2ef3
changeset:   82033:d0cfabed2ef3
branch:      2.7
parent:      82006:20f0c5398e97
user:        R David Murray <rdmurray at bitdance.com>
date:        Wed Feb 06 10:06:10 2013 -0500
summary:
  #17142: fix apparent copy and paste error in test_all.

files:
  Lib/test/test_builtin.py |  2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)


diff --git a/Lib/test/test_builtin.py b/Lib/test/test_builtin.py
--- a/Lib/test/test_builtin.py
+++ b/Lib/test/test_builtin.py
@@ -119,7 +119,7 @@
         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

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list