diff options
author | Mark Dickinson <dickinsm@gmail.com> | 2009-01-31 16:44:04 +0000 |
---|---|---|
committer | Mark Dickinson <dickinsm@gmail.com> | 2009-01-31 16:44:04 +0000 |
commit | f709ab852636ff0731eacb32483a46463f01a0dc (patch) | |
tree | 9a07e6b3c4092a7d3f25701ceb3a30b4e9baea7f | |
parent | 857ce15791136483fb4eb9a414c1311c21f7e1b0 (diff) | |
download | cpython-git-f709ab852636ff0731eacb32483a46463f01a0dc.tar.gz |
Add an extra test for long <-> float hash equivalence.
-rw-r--r-- | Lib/test/test_hash.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/test/test_hash.py b/Lib/test/test_hash.py index 7ce40b95b7..fa0fb2378f 100644 --- a/Lib/test/test_hash.py +++ b/Lib/test/test_hash.py @@ -35,6 +35,7 @@ class HashEqualityTestCase(unittest.TestCase): self.same_hash(int(-2**63), long(-2**63), float(-2**63)) self.same_hash(int(1-2**63), long(1-2**63)) self.same_hash(int(2**63-1), long(2**63-1)) + self.same_hash(long(2**63), float(2**63)) def test_coerced_floats(self): self.same_hash(long(1.23e300), float(1.23e300)) |