'Python' Category
-
Jul082010
How to run a single unit test/unit test module with py.test
Note to self: It is actually possible to select a single test module or a single test function in py.test.
But passing the file name as argument to a py.test invocation selects only the doctest from that file (wtf!?). Instead, you need to call it like this:
12$ py.test -k test_module # to run the tests [...] -
Dec232009
Hitting the dynamic linker wall…
I was working on replacing some mockup code for testing an internal library with python. Basically, the C code is incredibly big and I would rather mock the 3rd party API we are using in python. I wrote a generator to create wrapping code that forwards the C API calls to my python module.
Now that [...]