-
-
Notifications
You must be signed in to change notification settings - Fork 31.8k
gh-110944: Move pty helper to test.support and add basic pdb completion test #111826
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
gaogaotiantian
commented
Nov 7, 2023
•
edited by bedevere-app
bot
Loading
edited by bedevere-app
bot
- Issue: Make pdb completion work with alias, convenience variables etc. #110944
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.
Looks good, thank you! I have a few nitpicks, sorry for not thinking about these earlier.
Lib/test/test_pdb.py
Outdated
self.assertIn(b'cont', output) | ||
self.assertIn(b'condition', output) | ||
self.assertIn(b'continue', output) |
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.
The cont
assert is useless since continue
is checked later. How about checking that it appears as a separate word?
Also, IMO it would be nice to assert that thecontinue
command caused the print
to run (outputting a string that doesn't appear in the source).
self.assertIn(b'cont', output) | |
self.assertIn(b'condition', output) | |
self.assertIn(b'continue', output) | |
self.assertIn(b'cont', output.split()) | |
self.assertIn(b'condition', output) | |
self.assertIn(b'continue', output) | |
self.assertIn(b'hello!', output) |
(I just enabled extra CI that isn't always "green", but includes more platforms & configurations, which seems fitting for a PTY-related PR. Don't worry about the test failures, I'll check whether they're related.) |
Co-authored-by: Petr Viktorin <encukou@gmail.com>
You are right about |
Thank you!
I'll merge on Monday when I'm back at a computer.
On November 9, 2023 7:51:42 PM GMT+01:00, Tian Gao ***@***.***> wrote:
@gaogaotiantian requested your review on: python/cpython#111826 gh-110944: Move pty helper to test.support and add basic pdb completion test.
--
Reply to this email directly or view it on GitHub:
#111826 (comment)
You are receiving this because your review was requested.
Message ID: ***@***.***>
--
Sent from my Android device with K-9 Mail. Please excuse my brevity.
|
Thanks @gaogaotiantian for the PR, and @encukou for merging it 🌮🎉.. I'm working now to backport this PR to: 3.11, 3.12. |
…mpletion test (pythonGH-111826) (cherry picked from commit 1c7ed7e) Co-authored-by: Tian Gao <gaogaotiantian@hotmail.com>
GH-112024 is a backport of this pull request to the 3.12 branch. |
…mpletion test (pythonGH-111826) (cherry picked from commit 1c7ed7e) Co-authored-by: Tian Gao <gaogaotiantian@hotmail.com>
GH-112025 is a backport of this pull request to the 3.11 branch. |