Commit 9d1d8155 authored by Richard Plangger's avatar Richard Plangger

silence one test on big endian (the same is done on little endian)

parent 0954b58c
......@@ -2,6 +2,7 @@ from ctypes import *
from ctypes.test import need_symbol, xfail
import unittest
import os
import sys
import ctypes
import _ctypes_test
......@@ -279,7 +280,6 @@ class BitFieldTest(unittest.TestCase):
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 @@ class BitFieldTest(unittest.TestCase):
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()
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment