mirror of
https://github.com/python/cpython
synced 2026-09-29 09:40:29 +03:00
Adjust test_enumerate to accomodate for iter() blowing up sooner than
expected, when dealing with new-style broken-iterators.
This commit is contained in:
parent
c947123350
commit
1034dadf1f
1 changed files with 1 additions and 1 deletions
|
|
@ -92,7 +92,7 @@ class EnumerateTestCase(unittest.TestCase):
|
|||
self.assertRaises(TypeError, self.enum, X(self.seq))
|
||||
|
||||
def test_illformediterable(self):
|
||||
self.assertRaises(TypeError, list, self.enum(N(self.seq)))
|
||||
self.assertRaises(TypeError, self.enum, N(self.seq))
|
||||
|
||||
def test_exception_propagation(self):
|
||||
self.assertRaises(ZeroDivisionError, list, self.enum(E(self.seq)))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue