Message143671
| Author |
vstinner |
| Recipients |
skrah, vstinner |
| Date |
2011年09月07日.12:51:20 |
| SpamBayes Score |
0.0069600157 |
| Marked as misclassified |
No |
| Message-id |
<1315399881.02.0.505697018418.issue12927@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
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? |
|
History
|
|---|
| 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 |
|