pytest-testmon
pytest-testmon copied to clipboard
concurrent usage of settrace doesn't work in Python ecosystem
As a result, testmon is not compatible with most debuggers, tracing and coverage tools. From: https://coverage.readthedocs.io/en/6.5.0/trouble.html#things-that-don-t-work sys.settrace is the Python feature that coverage.py uses to see what’s happening in your program. If another part of your program is using sys.settrace, then it will conflict with coverage.py, and it won’t be measured properly.
Reading https://nedbatchelder.com/text/trace-function.html this is unlikely to be fixed very soon....
xref https://bitbucket.org/ned/coveragepy/issues/647/coveragepy-doesnt-seem-to-work-with
http://coverage.readthedocs.io/en/coverage-4.5.1/trouble.html
Updated link: https://coverage.readthedocs.io/en/6.5.0/trouble.html#things-that-don-t-work
what is the state of play on this? Is there a roadmap to pytest-testmon
moving away from using settrace
?