diff options
author | Raymond Hettinger <python@rcn.com> | 2004-03-10 08:32:47 (GMT) |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2004-03-10 08:32:47 (GMT) |
commit | d2c36261a202ec61bed023f22815c41d8179ace2 (patch) | |
tree | 1ee4f5e092f277306eb2477035f166fa37ef4be8 /Lib/test/test_enumerate.py | |
parent | a6366fe085dba6b47ff33a472a5371c4573a8c30 (diff) | |
download | cpython-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.py | 5 |
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)) |