[pypy-commit] pypy s390x-backend: the same for the UTF32 test

plan_rich pypy.commits at gmail.com
Fri Jan 22 03:36:53 EST 2016


Author: Richard Plangger <planrichi at gmail.com>
Branch: s390x-backend
Changeset: r81906:9df502324ca5
Date: 2016-01-22 09:36 +0100
http://bitbucket.org/pypy/pypy/changeset/9df502324ca5/

Log:	the same for the UTF32 test

diff --git a/pypy/module/cpyext/test/test_unicodeobject.py b/pypy/module/cpyext/test/test_unicodeobject.py
--- a/pypy/module/cpyext/test/test_unicodeobject.py
+++ b/pypy/module/cpyext/test/test_unicodeobject.py
@@ -423,7 +423,10 @@
 
         test("\x61\x00\x00\x00\x62\x00\x00\x00", -1)
 
-        test("\x61\x00\x00\x00\x62\x00\x00\x00", None)
+        if sys.byteorder == 'big':
+            test("\x00\x00\x00\x61\x00\x00\x00\x62", None)
+        else:
+            test("\x61\x00\x00\x00\x62\x00\x00\x00", None)
 
         test("\x00\x00\x00\x61\x00\x00\x00\x62", 1)
 


More information about the pypy-commit mailing list