This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author erik.bray
Recipients erik.bray
Date 2017-05-12.16:19:48
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
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/", 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:

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:48erik.braysetrecipients: + erik.bray
2017-05-12 16:19:48erik.braysetmessageid: <>
2017-05-12 16:19:48erik.braylinkissue30353 messages
2017-05-12 16:19:48erik.braycreate