[pypy-commit] pypy s390x-backend: test checks that trace is formed for a little endian read, forcing to read little endian on s390x

plan_rich pypy.commits at gmail.com
Fri Feb 5 10:59:41 EST 2016


Author: Richard Plangger <planrichi at gmail.com>
Branch: s390x-backend
Changeset: r82088:cfb1f88ae10c
Date: 2016-02-05 16:58 +0100
http://bitbucket.org/pypy/pypy/changeset/cfb1f88ae10c/

Log:	test checks that trace is formed for a little endian read, forcing
	to read little endian on s390x

diff --git a/pypy/module/pypyjit/test_pypy_c/test_buffers.py b/pypy/module/pypyjit/test_pypy_c/test_buffers.py
--- a/pypy/module/pypyjit/test_pypy_c/test_buffers.py
+++ b/pypy/module/pypyjit/test_pypy_c/test_buffers.py
@@ -34,7 +34,7 @@
             i = 0
             while i < n:
                 i += 1
-                struct.unpack('i', a)  # ID: unpack
+                struct.unpack('<i', a)  # ID: unpack
             return i
         log = self.run(main, [1000])
         assert log.result == 1000


More information about the pypy-commit mailing list