From: Raymond Hettinger Date: Thu, 29 May 2003 07:20:29 +0000 (+0000) Subject: Fix typo so that the test actually calls the tested function. X-Git-Tag: v2.3c1~573 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b25a52aac09b725dac76013dfafa60093fb2b576;p=python Fix typo so that the test actually calls the tested function. --- diff --git a/Lib/test/test_enumerate.py b/Lib/test/test_enumerate.py index 00f97ef6ff..88e24e8aba 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):