-
-
Notifications
You must be signed in to change notification settings - Fork 32.1k
gh-100141: Allow pdb to deal with empty file #125425
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
Conversation
Lib/test/test_pdb.py
Outdated
_, _ = self.run_pdb_script(script, commands) | ||
_, _ = self.run_pdb_module(script, commands) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
_, _ = self.run_pdb_script(script, commands) | |
_, _ = self.run_pdb_module(script, commands) | |
self.run_pdb_script(script, commands) | |
self.run_pdb_module(script, commands) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I thought about this again and I think we should at least check for something so I changed the test a bit.
This comment was marked as off-topic.
This comment was marked as off-topic.
Thanks @gaogaotiantian for the PR 🌮🎉.. I'm working now to backport this PR to: 3.12, 3.13. |
(cherry picked from commit bb9604b) Co-authored-by: Tian Gao <gaogaotiantian@hotmail.com>
(cherry picked from commit bb9604b) Co-authored-by: Tian Gao <gaogaotiantian@hotmail.com>
GH-125536 is a backport of this pull request to the 3.13 branch. |
GH-125537 is a backport of this pull request to the 3.12 branch. |
Shoot, I forgot to add the co-author in the commit... |
f_lineno == 0
is possible and pdb should just stop. The original fix is from #106467, I added the regression test.Co-authored-by: SonOfLilit