Author: Armin Rigo <ar...@tunes.org> Branch: win64-stage1 Changeset: r49334:263bc62972cd Date: 2011-11-11 18:20 +0100 http://bitbucket.org/pypy/pypy/changeset/263bc62972cd/
Log: Check in a test that fails (and works on "default") diff --git a/pypy/objspace/std/test/test_longobject.py b/pypy/objspace/std/test/test_longobject.py --- a/pypy/objspace/std/test/test_longobject.py +++ b/pypy/objspace/std/test/test_longobject.py @@ -225,6 +225,7 @@ assert x ^ 0x555555555L == 0x5FFFFFFFFL def test_hash(self): + import sys # ints have the same hash as equal longs for i in range(-4, 14): assert hash(i) == hash(long(i)) @@ -233,6 +234,8 @@ assert hash(1234567890123456789L) in ( -1895067127, # with 32-bit platforms 1234567890123456789) # with 64-bit platforms + assert hash(long(sys.maxint)) == sys.maxint + assert hash(long(-sys.maxint-1)) == -sys.maxint-1 def test_math_log(self): import math _______________________________________________ pypy-commit mailing list pypy-commit@python.org http://mail.python.org/mailman/listinfo/pypy-commit