+import platform
import unittest
from ctypes import *
from ctypes.test import need_symbol
import _ctypes_test
from test import support
+MACHINE = platform.machine()
+
class SubclassesTest(unittest.TestCase):
def test_subclass(self):
class X(Structure):
self.assertEqual(s.first, got.first)
self.assertEqual(s.second, got.second)
+ @unittest.skipIf(MACHINE in ('armv7l', 'ppc64'),
+ 'Test temporarily disabled on this architecture')
def test_array_in_struct(self):
# See bpo-22273
#define MAX_ELEMENTS 16
- if (arrays_seen && (size <= 16)) {
+ if (arrays_seen && (size <= MAX_ELEMENTS)) {
/*
* See bpo-22273. Arrays are normally treated as pointers, which is
* fine when an array name is being passed as parameter, but not when