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
Pdb.checkline() attribute error when 'curframe' is None #72714
Comments
Pdb.checkline() does a hasattr() check to protect against self.curframe not existing. self.curframe can also be None (if self.forget() or self.reset() was called), but checkline() does not handle this. The attached patch treats self.curframe == None as equivalent to the attribute being absent. Background: (Georg, I've nosy-listed you as I saw your name on a couple of similar issues; I hope you don't mind) |
The 3.9 backport failed because of test failures like: ====================================================================== Traceback (most recent call last):
File "D:\a\cpython\cpython\lib\test\test_pdb.py", line 1752, in tearDown
os_helper.unlink(os_helper.TESTFN)
NameError: name 'os_helper' is not defined |
Thank you Erlend! |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: