pytest segfault, not with -v

MRAB python at mrabarnett.plus.com
Fri Nov 19 14:33:07 EST 2021


On 2021-11-19 17:48, Marco Sulla wrote:
> I have a battery of tests done with pytest. My tests break with a
> segfault if I run them normally. If I run them using pytest -v, the
> segfault does not happen.
> 
> What could cause this quantical phenomenon?
> 
Are you testing an extension that you're compiling? That kind of problem 
can occur if there's an uninitialised variable or incorrect reference 
counting (Py_INCREF/Py_DECREF).


More information about the Python-list mailing list