Avoid pytest hanging when libpython crashes I’m using pytest with pytest-xdist to test some C code (via python bindings).