From b25a52aac09b725dac76013dfafa60093fb2b576 Mon Sep 17 00:00:00 2001 From: Raymond Hettinger Date: Thu, 29 May 2003 07:20:29 +0000 Subject: Fix typo so that the test actually calls the tested function. --- 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 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): -- cgit v0.12