Using Python to unit test C code

Miki miki.tebeka at gmail.com
Mon May 26 14:31:09 EDT 2008


Hello,

> I would like to hear any information about how to unit test C code using Python.
I never done it, but you can either generate a Python wrapper (using
SWIG, Boost.Python, Pyrex ...) and then test the wrapper, or directly
call the C module functions using ctypes.

HTH,
--
Miki <miki.tebeka at gmail.com>
http://pythonwise.blogspot.com



More information about the Python-list mailing list