From 1034dadf1fb032612281f7559be2b71615e9fc9e Mon Sep 17 00:00:00 2001 From: Thomas Wouters Date: Sat, 15 Apr 2006 09:16:16 +0000 Subject: Adjust test_enumerate to accomodate for iter() blowing up sooner than expected, when dealing with new-style broken-iterators. --- Lib/test/test_enumerate.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/test/test_enumerate.py b/Lib/test/test_enumerate.py index e0a272e..10ff8f4 100644 --- a/Lib/test/test_enumerate.py +++ b/Lib/test/test_enumerate.py @@ -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))) -- cgit v0.12