homepage

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 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:21vstinnersetrecipients: + vstinner, skrah
2011年09月07日 12:51:21vstinnersetmessageid: <1315399881.02.0.505697018418.issue12927@psf.upfronthosting.co.za>
2011年09月07日 12:51:20vstinnerlinkissue12927 messages
2011年09月07日 12:51:20vstinnercreate

AltStyle によって変換されたページ (->オリジナル) /