[pypy-commit] pypy default: fix test for 32 bit platforms

mattip noreply at buildbot.pypy.org
Sun Apr 8 19:07:27 CEST 2012


Author: Matti Picus <matti.picus at gmail.com>
Branch: 
Changeset: r54259:aaa93c295404
Date: 2012-04-08 20:06 +0300
http://bitbucket.org/pypy/pypy/changeset/aaa93c295404/

Log:	fix test for 32 bit platforms

diff --git a/pypy/module/micronumpy/test/test_ufuncs.py b/pypy/module/micronumpy/test/test_ufuncs.py
--- a/pypy/module/micronumpy/test/test_ufuncs.py
+++ b/pypy/module/micronumpy/test/test_ufuncs.py
@@ -592,9 +592,8 @@
 
     def test_shift(self):
         from _numpypy import left_shift, right_shift
-        import sys
 
-        assert (left_shift([5, 1], [2, 31]) == [20, 2**31]).all()
+        assert (left_shift([5, 1], [2, 13]) == [20, 2**13]).all()
         assert (right_shift(10, range(5)) == [10, 5, 2, 1, 0]).all()
 
     def test_comparisons(self):


More information about the pypy-commit mailing list