[TIP] Debugging C Extensions with PyTest : Memory Checking
daniel.knuettel at daknuett.eu
Tue Nov 12 08:33:05 PST 2019
Is there a way to include memory checking for C extensions in pytest
Basically what I usually do is to write a small file that calls the
stuff I want to test and then run
valgrind python3 do_stuff.py
but this is (a) not integrated into my systematic tests and (b) always
gives a shitload of errors because apparently no python developer heard
of a memory checker before.
I have the gut feeling that there is no way to do that, but I would be
happy if there was a way.
Daniel Knüttel <daniel.knuettel at daknuett.eu>
More information about the testing-in-python