#17255: merge with 3.3.

This commit is contained in:
Ezio Melotti 2013-02-21 23:17:34 +02:00
commit 8a268b985f
2 changed files with 3 additions and 0 deletions

View File

@ -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]

View File

@ -426,6 +426,7 @@ Johannes Gijsbers
Michael Gilfix
Yannick Gingras
Matt Giuca
Wim Glenn
Michael Goderbauer
Christoph Gohlke
Tim Golden