STINNER Victor <[email protected]> added the comment:
Code of the test:
from ctypes import *
def test_ignore_retval(self):
# Test if the return value of a callback is ignored
# if restype is None
proto = CFUNCTYPE(None)
def func():
return (1, "abc", None)
cb = proto(func)
self.assertEqual(None, cb())
The crash occurs on self.assertEqual(None, cb()). I suppose that it occurs on
cb().
Is CFUNCTYPE correct? Or should it be PYFUNCTYPE?
----------
nosy: +haypo
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue12927>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com