summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_enumerate.py
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2003-05-29 07:20:29 (GMT)
committerRaymond Hettinger <python@rcn.com>2003-05-29 07:20:29 (GMT)
commitb25a52aac09b725dac76013dfafa60093fb2b576 (patch)
tree8ffb545ee2350144db068ef9574a488b8787e7ec /Lib/test/test_enumerate.py
parentf0fa1c03a0d0f2adc24152e721be8783899fc45a (diff)
downloadcpython-b25a52aac09b725dac76013dfafa60093fb2b576.zip
cpython-b25a52aac09b725dac76013dfafa60093fb2b576.tar.gz
cpython-b25a52aac09b725dac76013dfafa60093fb2b576.tar.bz2
Fix typo so that the test actually calls the tested function.
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 00f97ef..88e24e8 100644
--- a/Lib/test/test_enumerate.py
+++ b/Lib/test/test_enumerate.py
@@ -105,7 +105,7 @@ class EnumerateTestCase(unittest.TestCase):
def test_tuple_reuse(self):
# Tests an implementation detail where tuple is reused
# whenever nothing else holds a reference to it
- self.assertEqual(len(Set(map(id, list(self.seq)))), len(self.seq))
+ self.assertEqual(len(Set(map(id, list(enumerate(self.seq))))), len(self.seq))
self.assertEqual(len(Set(map(id, enumerate(self.seq)))), min(1,len(self.seq)))
class MyEnum(enumerate):