[pypy-commit] pypy default: Revert pytest.ini, make test work on 32-bit systems
Sreepathi Pai
pypy.commits at gmail.com
Thu Feb 6 03:58:58 EST 2020
Author: Sreepathi Pai <sree at 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
More information about the pypy-commit
mailing list