Kaydet (Commit) b25a52aa authored tarafından Raymond Hettinger's avatar Raymond Hettinger

Fix typo so that the test actually calls the tested function.

üst f0fa1c03
......@@ -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):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment