commit | 51fc8c456e9bbb97f42c6990e40019cd4a5eb615 | [log] [tgz] |
---|---|---|
author | Armin Rigo <arigo@tunes.org> | Wed Aug 09 14:55:26 2006 +0000 |
committer | Armin Rigo <arigo@tunes.org> | Wed Aug 09 14:55:26 2006 +0000 |
tree | c687e90ad2a80154f4b2d2b39c07adc51b19260b | |
parent | 98c048041d91dc4694115e29b40182f89a3b9f1d [diff] |
Fix and test for an infinite C recursion.
diff --git a/Lib/test/test_builtin.py b/Lib/test/test_builtin.py index 26bfe87..ca7a8f3 100644 --- a/Lib/test/test_builtin.py +++ b/Lib/test/test_builtin.py
@@ -649,6 +649,10 @@ def __hash__(self): return 2**100 self.assertEquals(type(hash(Y())), int) + class Z(long): + def __hash__(self): + return self + self.assertEquals(hash(Z(42)), hash(42L)) def test_hex(self): self.assertEqual(hex(16), '0x10')