diff options
author | Alexander Belopolsky <alexander.belopolsky@gmail.com> | 2010-08-16 18:55:46 (GMT) |
---|---|---|
committer | Alexander Belopolsky <alexander.belopolsky@gmail.com> | 2010-08-16 18:55:46 (GMT) |
commit | e29e6bffb577233c0e327f831c037ebf92da0157 (patch) | |
tree | f3b58faa1e924dbd606f0354b11b7488d520d155 /Lib/test/test_builtin.py | |
parent | 27354ccec97f9aa79449397cd29f7d70b8e9f445 (diff) | |
download | cpython-e29e6bffb577233c0e327f831c037ebf92da0157.zip cpython-e29e6bffb577233c0e327f831c037ebf92da0157.tar.gz cpython-e29e6bffb577233c0e327f831c037ebf92da0157.tar.bz2 |
Issue #665761: functools.reduce() will no longer mask exceptions other
than TypeError raised by the iterator argument. Also added a test to
check that zip() already behaves similarly.
Diffstat (limited to 'Lib/test/test_builtin.py')
-rw-r--r-- | Lib/test/test_builtin.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/test/test_builtin.py b/Lib/test/test_builtin.py index 3f412b7..b25f3c4 100644 --- a/Lib/test/test_builtin.py +++ b/Lib/test/test_builtin.py @@ -1234,6 +1234,7 @@ class BuiltinTest(unittest.TestCase): class G: pass self.assertRaises(TypeError, zip, a, G()) + self.assertRaises(RuntimeError, zip, a, TestFailingIter()) # Make sure zip doesn't try to allocate a billion elements for the # result list when one of its arguments doesn't say how long it is. |