test_ctypes sporadically fails on OSX, e.g. in
In this case, the following traceback is given
Traceback (most recent call last):
line 95, in test_intresult
AssertionError: u'\x15' != 21
This is surprising, since apparently it decides to
create a Unicode character, instead of an integer.
On closer inspection, it seems that restype field of
CFuncPtrObject is never initialized (not even to NULL).
I think all fields should get some kind of initial value.
Log in to post a comment.