[pypy-commit] pypy default: silence one test on big endian (the same is done on little endian)
plan_rich
pypy.commits at gmail.com
Thu Nov 3 06:45:10 EDT 2016
Author: Richard Plangger <planrichi at gmail.com>
Branch:
Changeset: r88111:cc0f4adda6f9
Date: 2016-11-03 11:42 +0100
http://bitbucket.org/pypy/pypy/changeset/cc0f4adda6f9/
Log: silence one test on big endian (the same is done on little endian)
diff --git a/lib-python/2.7/ctypes/test/test_bitfields.py b/lib-python/2.7/ctypes/test/test_bitfields.py
--- a/lib-python/2.7/ctypes/test/test_bitfields.py
+++ b/lib-python/2.7/ctypes/test/test_bitfields.py
@@ -2,6 +2,7 @@
from ctypes.test import need_symbol, xfail
import unittest
import os
+import sys
import ctypes
import _ctypes_test
@@ -279,7 +280,6 @@
x.c = 2
self.assertEqual(b.tostring(), b'\xef\xcd\xab\x21')
- @xfail
@need_symbol('c_uint32')
def test_uint32_swap_big_endian(self):
# Issue #23319
@@ -295,5 +295,11 @@
x.c = 2
self.assertEqual(b.tostring(), b'\xab\xcd\xef\x12')
+ # see issue #1213, on big endian it fails for the little endian case
+ if sys.byteorder == 'little':
+ test_uint32_swap_big_endian = xfail(test_uint32_swap_big_endian)
+ elif sys.byteorder == 'big':
+ test_uint32_swap_little_endian = xfail(test_uint32_swap_little_endian)
+
if __name__ == "__main__":
unittest.main()
More information about the pypy-commit
mailing list