Message143671
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? |
|
Date |
User |
Action |
Args |
2011-09-07 12:51:21 | vstinner | set | recipients:
+ vstinner, skrah |
2011-09-07 12:51:21 | vstinner | set | messageid: <1315399881.02.0.505697018418.issue12927@psf.upfronthosting.co.za> |
2011-09-07 12:51:20 | vstinner | link | issue12927 messages |
2011-09-07 12:51:20 | vstinner | create | |
|