summaryrefslogtreecommitdiffstats
path: root/Lib/ctypes/test
diff options
context:
space:
mode:
authorVinay Sajip <vinay_sajip@yahoo.co.uk>2020-01-12 08:54:00 (GMT)
committerGitHub <noreply@github.com>2020-01-12 08:54:00 (GMT)
commitc12440c371025bea9c3bfb94945f006c486c2c01 (patch)
tree22e216f51136345710e8c22f2b4290b3c66ce138 /Lib/ctypes/test
parent100fafcf20e8fc67cd8ef512074f9c0a253cb427 (diff)
downloadcpython-c12440c371025bea9c3bfb94945f006c486c2c01.zip
cpython-c12440c371025bea9c3bfb94945f006c486c2c01.tar.gz
cpython-c12440c371025bea9c3bfb94945f006c486c2c01.tar.bz2
bpo-16575: Disabled checks for union types being passed by value. (GH-17960)
Although the underlying libffi issue remains open, adding these checks have caused problems in third-party projects which are in widespread use. See the issue for examples. The corresponding tests have also been skipped.
Diffstat (limited to 'Lib/ctypes/test')
-rw-r--r--Lib/ctypes/test/test_structures.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/ctypes/test/test_structures.py b/Lib/ctypes/test/test_structures.py
index 283ccbf..245cd94 100644
--- a/Lib/ctypes/test/test_structures.py
+++ b/Lib/ctypes/test/test_structures.py
@@ -576,6 +576,7 @@ class StructureTestCase(unittest.TestCase):
self.assertEqual(f2, [0x4567, 0x0123, 0xcdef, 0x89ab,
0x3210, 0x7654, 0xba98, 0xfedc])
+ @unittest.skipIf(True, 'Test disabled for now - see bpo-16575/bpo-16576')
def test_union_by_value(self):
# See bpo-16575
@@ -656,7 +657,7 @@ class StructureTestCase(unittest.TestCase):
self.assertEqual(test5.nested.an_int, 0)
self.assertEqual(test5.another_int, 0)
- #@unittest.skipIf('s390' in MACHINE, 'Test causes segfault on S390')
+ @unittest.skipIf(True, 'Test disabled for now - see bpo-16575/bpo-16576')
def test_bitfield_by_value(self):
# See bpo-16576