Author: Sreepathi Pai <sree@buckyball>
Branch: 
Changeset: r98671:4c44f65af534
Date: 2020-02-05 20:34 -0500
http://bitbucket.org/pypy/pypy/changeset/4c44f65af534/

Log:    Revert pytest.ini, make test work on 32-bit systems

diff --git a/rpython/pytest.ini b/rpython/pytest.ini
--- a/rpython/pytest.ini
+++ b/rpython/pytest.ini
@@ -1,2 +1,2 @@
 [pytest]
-#addopts = --assert=reinterp -rf
+addopts = --assert=reinterp -rf
diff --git a/rpython/rlib/rstruct/test/test_runpack.py 
b/rpython/rlib/rstruct/test/test_runpack.py
--- a/rpython/rlib/rstruct/test/test_runpack.py
+++ b/rpython/rlib/rstruct/test/test_runpack.py
@@ -114,9 +114,9 @@
         data = struct.pack('BBhi', 1, 2, 3, 4)
         def fn():
             a, b, c, d = runpack('BBhi', data)
-            return a+(b << 8)+(c << 16) + (d << 32)
-        assert fn() == 0x400030201
-        assert self.interpret(fn, []) == 0x400030201
+            return a + (b << 4) + (c << 8) + (d << 12)
+        assert fn() == 0x4321
+        assert self.interpret(fn, []) == 0x4321
 
 
 
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to