Message293556
The test ctypes.test.test_structures.StructureTestCase.test_pass_by_value fails on 64-bit Cygwin and MinGW using the system libffi with:
======================================================================
FAIL: test_pass_by_value (ctypes.test.test_structures.StructureTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/embray/src/python/cpython/Lib/ctypes/test/test_structures.py", line 416, in test_pass_by_value
self.assertEqual(s.first, 0xdeadbeef)
AssertionError: 195948557 != 3735928559
It seems that libffi does not handle passing structs by value properly on those platforms as I explained here: https://github.com/libffi/libffi/issues/305
The upstream bug hasn't been confirmed yet by the libffi developers so I could be wrong, but I think this is fairly clearly broken there.
I have a PR forthcoming to work around the issue. |
|
Date |
User |
Action |
Args |
2017-05-12 16:19:48 | erik.bray | set | recipients:
+ erik.bray |
2017-05-12 16:19:48 | erik.bray | set | messageid: <1494605988.92.0.550577143248.issue30353@psf.upfronthosting.co.za> |
2017-05-12 16:19:48 | erik.bray | link | issue30353 messages |
2017-05-12 16:19:48 | erik.bray | create | |
|