diff options
author | Ronan Lamy <ronan.lamy@gmail.com> | 2020-02-27 16:36:01 +0000 |
---|---|---|
committer | Ronan Lamy <ronan.lamy@gmail.com> | 2020-02-27 16:36:01 +0000 |
commit | bb720b90bd2f5f7878b567a5c8333793edb5c614 (patch) | |
tree | 9c3359c789b3a1c2f024d359e91b188e07fb3717 /extra_tests | |
parent | Document branch (diff) | |
parent | not sure why I added this, it is wrong (test added), and not needed (diff) | |
download | pypy-bb720b90bd2f5f7878b567a5c8333793edb5c614.tar.gz pypy-bb720b90bd2f5f7878b567a5c8333793edb5c614.tar.bz2 pypy-bb720b90bd2f5f7878b567a5c8333793edb5c614.zip |
hg merge default
Diffstat (limited to 'extra_tests')
-rw-r--r-- | extra_tests/ctypes_tests/test_structures.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/extra_tests/ctypes_tests/test_structures.py b/extra_tests/ctypes_tests/test_structures.py index b6bd075942..fa6ed900ae 100644 --- a/extra_tests/ctypes_tests/test_structures.py +++ b/extra_tests/ctypes_tests/test_structures.py @@ -1,6 +1,7 @@ from ctypes import * import pytest +import sys def test_subclass_initializer(): @@ -207,6 +208,9 @@ def test_memoryview(): ) mv = memoryview(c_array) - assert mv.format == 'T{<h:a:<h:b:}' + if sys.byteorder == 'little': + assert mv.format == 'T{<h:a:<h:b:}' + else: + assert mv.format == 'T{>h:a:>h:b:}' assert mv.shape == (2, 3) assert mv.itemsize == 4 |