Is it possible to use python to unit test C++ code?

Fredrik Lundh fredrik at
Mon Oct 30 08:17:13 CET 2006

Liu HuaDong-E6754C wrote:

> Did any one used python to do C++ unit test?
> If u did, could u give some actions how to do unit test by using python.

use a standard tool to generate a binding for the relevant C++ libraries:

and then write Python code to do the tests, preferably using an 
available Python testing framework.  this page mentions some of them:


More information about the Python-list mailing list