commit | 6b27cda64386195cd07dfb686e9486f1c4bc3159 | [log] [tgz] |
---|---|---|
author | Raymond Hettinger <python@rcn.com> | Sat Sep 24 21:23:05 2005 +0000 |
committer | Raymond Hettinger <python@rcn.com> | Sat Sep 24 21:23:05 2005 +0000 |
tree | 277a5c96e9683c63b573b508f8c4bd2d1374aed8 | |
parent | 9ceebd544516908e67c0f0d92c7a5f484e12beeb [diff] [blame] |
Convert iterator __len__() methods to a private API.
diff --git a/Lib/test/test_itertools.py b/Lib/test/test_itertools.py index 5db128c..635d156 100644 --- a/Lib/test/test_itertools.py +++ b/Lib/test/test_itertools.py
@@ -670,6 +670,7 @@ class LengthTransparency(unittest.TestCase): def test_repeat(self): + from test.test_iterlen import len self.assertEqual(len(repeat(None, 50)), 50) self.assertRaises(TypeError, len, repeat(None))