summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_enumerate.py
diff options
context:
space:
mode:
authorThomas Wouters <thomas@python.org>2006-04-15 09:16:16 (GMT)
committerThomas Wouters <thomas@python.org>2006-04-15 09:16:16 (GMT)
commit1034dadf1fb032612281f7559be2b71615e9fc9e (patch)
tree4baf043ab65349551f33e1d0bbfd8bb3fb2fc4af /Lib/test/test_enumerate.py
parentc947123350b31d3fab7e4893eb87cb361125f549 (diff)
downloadcpython-1034dadf1fb032612281f7559be2b71615e9fc9e.zip
cpython-1034dadf1fb032612281f7559be2b71615e9fc9e.tar.gz
cpython-1034dadf1fb032612281f7559be2b71615e9fc9e.tar.bz2
Adjust test_enumerate to accomodate for iter() blowing up sooner than
expected, when dealing with new-style broken-iterators.
Diffstat (limited to 'Lib/test/test_enumerate.py')
-rw-r--r--Lib/test/test_enumerate.py2
1 files changed, 1 insertions, 1 deletions
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)))