summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_enumerate.py
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2004-03-10 08:32:47 (GMT)
committerRaymond Hettinger <python@rcn.com>2004-03-10 08:32:47 (GMT)
commitd2c36261a202ec61bed023f22815c41d8179ace2 (patch)
tree1ee4f5e092f277306eb2477035f166fa37ef4be8 /Lib/test/test_enumerate.py
parenta6366fe085dba6b47ff33a472a5371c4573a8c30 (diff)
downloadcpython-d2c36261a202ec61bed023f22815c41d8179ace2.zip
cpython-d2c36261a202ec61bed023f22815c41d8179ace2.tar.gz
cpython-d2c36261a202ec61bed023f22815c41d8179ace2.tar.bz2
Eliminate the double reverse option. It's only use case
was academic and it was potentially confusing to use.
Diffstat (limited to 'Lib/test/test_enumerate.py')
-rw-r--r--Lib/test/test_enumerate.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/Lib/test/test_enumerate.py b/Lib/test/test_enumerate.py
index 00ecbcc..34bc71d 100644
--- a/Lib/test/test_enumerate.py
+++ b/Lib/test/test_enumerate.py
@@ -141,11 +141,8 @@ class TestReversed(unittest.TestCase):
x = xrange(1)
self.assertEqual(type(reversed(x)), type(iter(x)))
- def test_double_reverse(self):
- s = 'hello'
- self.assertEqual(list(reversed(reversed(s))), list(s))
-
def test_len(self):
+ # This is an implementation detail, not an interface requirement
s = 'hello'
self.assertEqual(len(reversed(s)), len(s))