This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author blueyed
Recipients blueyed
Date 2019-05-22.12:44:44
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1558529084.78.0.178705379805.issue37011@roundup.psfhosted.org>
In-reply-to
Content
bdb/pdb currently uses `sys.settrace(None)` when uninstalling its trace function (trace_dispatch), but should rather store the original trace function in the beginning and use this instead of `None`.

While typically pdb is not used in tests, it is just good practice, given that there can only be a single trace function.

I've done this via monkeypatching for pdbpp's tests, which resulted in an easy 2% coverage gain (https://github.com/antocuni/pdb/pull/253).
History
Date User Action Args
2019-05-22 12:44:44blueyedsetrecipients: + blueyed
2019-05-22 12:44:44blueyedsetmessageid: <1558529084.78.0.178705379805.issue37011@roundup.psfhosted.org>
2019-05-22 12:44:44blueyedlinkissue37011 messages
2019-05-22 12:44:44blueyedcreate