mirror of
https://github.com/python/cpython.git
synced 2025-12-15 21:44:50 +00:00
Issue #13201: equality for range objects is now based on equality of the underlying sequences. Thanks Sven Marnach for the patch.
This commit is contained in:
parent
a2a2e480f3
commit
36645681c8
7 changed files with 209 additions and 4 deletions
|
|
@ -107,8 +107,7 @@ class DefaultIterSeq(object):
|
|||
return self.seq[index]
|
||||
|
||||
class HashBuiltinsTestCase(unittest.TestCase):
|
||||
hashes_to_check = [range(10),
|
||||
enumerate(range(10)),
|
||||
hashes_to_check = [enumerate(range(10)),
|
||||
iter(DefaultIterSeq()),
|
||||
iter(lambda: 0, 0),
|
||||
]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue