Commit 1034dadf authored by Thomas Wouters's avatar Thomas Wouters

Adjust test_enumerate to accomodate for iter() blowing up sooner than

expected, when dealing with new-style broken-iterators.
parent c9471233
......@@ -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)))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment