diff options
author | Ezio Melotti <ezio.melotti@gmail.com> | 2013-02-21 21:17:08 (GMT) |
---|---|---|
committer | Ezio Melotti <ezio.melotti@gmail.com> | 2013-02-21 21:17:08 (GMT) |
commit | 600b71167e386de4a4259947935d14ac091c5741 (patch) | |
tree | 7cfd8d607c72ab919b70e3667a6acd3a27d37997 /Lib/test/test_builtin.py | |
parent | ed891c151748d030a890d50f3bbce3f581304439 (diff) | |
parent | 0f4377c100049a80d2338de3b9f3b7c7489a08b3 (diff) | |
download | cpython-600b71167e386de4a4259947935d14ac091c5741.zip cpython-600b71167e386de4a4259947935d14ac091c5741.tar.gz cpython-600b71167e386de4a4259947935d14ac091c5741.tar.bz2 |
#17255: merge with 3.2.
Diffstat (limited to 'Lib/test/test_builtin.py')
-rw-r--r-- | Lib/test/test_builtin.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/test/test_builtin.py b/Lib/test/test_builtin.py index bea88b4..c342a43 100644 --- a/Lib/test/test_builtin.py +++ b/Lib/test/test_builtin.py @@ -180,6 +180,7 @@ class BuiltinTest(unittest.TestCase): self.assertRaises(TypeError, all) # No args self.assertRaises(TypeError, all, [2, 4, 6], []) # Too many args self.assertEqual(all([]), True) # Empty iterator + self.assertEqual(all([0, TestFailingBool()]), False)# Short-circuit S = [50, 60] self.assertEqual(all(x > 42 for x in S), True) S = [50, 40, 60] @@ -194,6 +195,7 @@ class BuiltinTest(unittest.TestCase): self.assertRaises(TypeError, any) # No args self.assertRaises(TypeError, any, [2, 4, 6], []) # Too many args self.assertEqual(any([]), False) # Empty iterator + self.assertEqual(any([1, TestFailingBool()]), True) # Short-circuit S = [40, 60, 30] self.assertEqual(any(x > 42 for x in S), True) S = [10, 20, 30] |