From d2c36261a202ec61bed023f22815c41d8179ace2 Mon Sep 17 00:00:00 2001 From: Raymond Hettinger Date: Wed, 10 Mar 2004 08:32:47 +0000 Subject: Eliminate the double reverse option. It's only use case was academic and it was potentially confusing to use. --- Lib/test/test_enumerate.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'Lib/test/test_enumerate.py') diff --git a/Lib/test/test_enumerate.py b/Lib/test/test_enumerate.py index 00ecbcccaf..34bc71db24 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)) -- cgit v1.2.1