[TIP] C-extension coverage

francis francismb at email.de
Wed Apr 11 12:49:03 PDT 2012

Hi all,

I would like to have line and branch coverage of a Python C-extension by
using gcc-coverage (gcov). AFAIN to be able to use gcov for that, the 
module has to be compiled statically: means in that case the 
interpreter, the
tests (written in python with unittest) and the C-extension itself. I 
wonder if that
can be achieved with py2exe or some of it's pendants...

If someone has already gone that path or did something similar … any idea is

Thanks in advance!


More information about the testing-in-python mailing list