[issue37011] pdb: restore original tracing function instead of sys.settrace(None)

daniel hahler report at bugs.python.org
Wed Jun 5 05:31:05 EDT 2019


daniel hahler <python-bugs at thequod.de> added the comment:

Just for reference: I've just spent quite some time debugging missing coverage with pytest, and it turned out that part of it is because of this issue.  Most of the pdb related tests run in a subprocess (via pexpect), but not all of them.

I am using a wrapper now to restore this manually (https://github.com/pytest-dev/pytest/pull/5406).

Even though I was aware of this issue, it took me quite a while, mainly because this started out with slash related issues for Windows only, and I was debugging this on/via CI only at first.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue37011>
_______________________________________


More information about the Python-bugs-list mailing list