Issue #16148: Small improvements and cleanup. Added version information

to docs.
This commit is contained in:
Armin Ronacher 2012-10-07 10:29:32 +02:00
parent 96e936712f
commit 74b38b190f
6 changed files with 24 additions and 9 deletions

View file

@ -170,7 +170,6 @@ class TestReversed(unittest.TestCase, PickleTest):
self.assertEqual(type(reversed(x)), type(iter(x)))
def test_len(self):
# This is an implementation detail, not an interface requirement
for s in ('hello', tuple('hello'), list('hello'), range(5)):
self.assertEqual(operator.length_hint(reversed(s)), len(s))
r = reversed(s)