We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 41c4cee commit f2e2626Copy full SHA for f2e2626
Lib/test/test_long.py
@@ -1707,7 +1707,7 @@ def test_hash(self):
1707
self.assertEqual(hash(-sys.hash_info.modulus - 2), -2)
1708
self.assertEqual(hash(-sys.hash_info.modulus - 1), -2)
1709
self.assertEqual(hash(-sys.hash_info.modulus), 0)
1710
- self.assertEqual(hash(-sys.hash_info.modulus + 1), - (sys.hash_info.modulus - 1))
+ self.assertEqual(hash(-sys.hash_info.modulus + 1), -sys.hash_info.modulus + 1))
1711
1712
if __name__ == "__main__":
1713
unittest.main()
0 commit comments