pytest-testmon icon indicating copy to clipboard operation
pytest-testmon copied to clipboard

concurrent usage of settrace doesn't work in Python ecosystem

Open tarpas opened this issue 6 years ago • 4 comments

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.

tarpas avatar Apr 21 '18 07:04 tarpas

Reading https://nedbatchelder.com/text/trace-function.html this is unlikely to be fixed very soon....

tarpas avatar Aug 01 '18 15:08 tarpas

xref https://bitbucket.org/ned/coveragepy/issues/647/coveragepy-doesnt-seem-to-work-with

max-sixty avatar Aug 01 '18 16:08 max-sixty

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

webknjaz avatar Oct 24 '22 16:10 webknjaz

what is the state of play on this? Is there a roadmap to pytest-testmon moving away from using settrace?

gszep avatar Jan 10 '24 10:01 gszep