Skip to content

Commit 146f5aa

Browse files
committed
Add test for long_hash
1 parent 59acdba commit 146f5aa

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

Lib/test/test_long.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1693,5 +1693,8 @@ class MyInt(int):
16931693
# GH-117195 -- This shouldn't crash
16941694
object.__sizeof__(1)
16951695

1696+
def test_long_hash(self):
1697+
assert hash(-2**61) != -1
1698+
16961699
if __name__ == "__main__":
16971700
unittest.main()

0 commit comments

Comments
 (0)