summaryrefslogtreecommitdiff
path: root/Lib/test/test_enumerate.py
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2005-09-24 21:23:05 +0000
committerRaymond Hettinger <python@rcn.com>2005-09-24 21:23:05 +0000
commit0721428162222d11bcdf2944b55956b6e887ce97 (patch)
tree4cefbefea4de1c14183e592e957d7a2aa89d7558 /Lib/test/test_enumerate.py
parent36beb6e954cda2d9cb9cbe0dde89ccfc803a2ebd (diff)
downloadcpython-0721428162222d11bcdf2944b55956b6e887ce97.tar.gz
Convert iterator __len__() methods to a private API.
Diffstat (limited to 'Lib/test/test_enumerate.py')
-rw-r--r--Lib/test/test_enumerate.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/test/test_enumerate.py b/Lib/test/test_enumerate.py
index b6a18eeeb4..e0a272e025 100644
--- a/Lib/test/test_enumerate.py
+++ b/Lib/test/test_enumerate.py
@@ -144,6 +144,7 @@ class TestReversed(unittest.TestCase):
def test_len(self):
# This is an implementation detail, not an interface requirement
+ from test.test_iterlen import len
for s in ('hello', tuple('hello'), list('hello'), xrange(5)):
self.assertEqual(len(reversed(s)), len(s))
r = reversed(s)