[pypy-commit] pypy win64-stage1: Check in a test that fails (and works on "default")

arigo noreply at buildbot.pypy.org
Fri Nov 11 18:21:17 CET 2011


Author: Armin Rigo <arigo at 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


More information about the pypy-commit mailing list