mirror of
https://github.com/python/cpython.git
synced 2025-08-31 14:07:50 +00:00
Issue #16148: Small improvements and cleanup. Added version information
to docs.
This commit is contained in:
parent
96e936712f
commit
74b38b190f
6 changed files with 24 additions and 9 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue