Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

concurrent usage of settrace doesn't work in Python ecosystem #97

Open
tarpas opened this issue Apr 21, 2018 · 4 comments
Open

concurrent usage of settrace doesn't work in Python ecosystem #97

tarpas opened this issue Apr 21, 2018 · 4 comments

Comments

@tarpas
Copy link
Owner

tarpas commented Apr 21, 2018

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
Copy link
Owner Author

tarpas commented Aug 1, 2018

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

@max-sixty
Copy link

@webknjaz
Copy link
Contributor

@gszep
Copy link

gszep commented Jan 10, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants