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:
Mark Dickinson 2011-10-23 19:53:01 +01:00
parent a2a2e480f3
commit 36645681c8
7 changed files with 209 additions and 4 deletions

View file

@ -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),
]