When I add the switches to generate a coverage report using pytest it generates internal errors. I am running pytest in a .sh file by doing: pytest -x -v -s tests/$PYTHON
pytest -x -v -s tests/$PYTHON