[pypy-commit] pypy default: Fix on 32-bit

arigo noreply at buildbot.pypy.org
Tue Oct 21 13:34:09 CEST 2014


Author: Armin Rigo <arigo at tunes.org>
Branch: 
Changeset: r74029:a87f6e036742
Date: 2014-10-21 11:18 +0200
http://bitbucket.org/pypy/pypy/changeset/a87f6e036742/

Log:	Fix on 32-bit

diff --git a/rpython/rlib/test/test_rbigint.py b/rpython/rlib/test/test_rbigint.py
--- a/rpython/rlib/test/test_rbigint.py
+++ b/rpython/rlib/test/test_rbigint.py
@@ -582,6 +582,8 @@
     def test_int_bitwise(self):
         for x in gen_signs([0, 1, 5, 11, 42, 43, 2 ** 30]):
             for y in gen_signs([0, 1, 5, 11, 42, 43, 3 ** 30, 2 ** 31]):
+                if y != intmask(y):
+                    continue      # skip 'y' too large for 32-bit
                 lx = rbigint.fromlong(x)
                 for mod in "xor and_ or_".split():
                     res1 = getattr(lx, 'int_' + mod)(y).tolong()


More information about the pypy-commit mailing list