gh-101517: Attach line number to the RERAISE at the end of a try-except* by iritkatriel · Pull Request #101768 · python/cpython
-
-
Notifications
You must be signed in to change notification settings - Fork 34.7k
Closed
Conversation
Member
iritkatriel added 2 commits
iritkatriel
requested a review
from markshannon
as a code owner
bedevere-bot
added
the
awaiting core review
label
bedevere-bot
mentioned this pull request
iritkatriel
closed this
iritkatriel
reopened this
hugovk
reviewed
Lib/test/test_pdb.py Outdated
Comment on lines +1412 to +1431
| """See GH-101517 | ||
|
|
||
| breakpoint in except* clause | ||
|
|
||
| >>> def test_function(): | ||
| ... try: | ||
| ... raise ExceptionGroup("eg", [KeyError(), ValueError()]) | ||
| ... except* KeyError: | ||
| ... breakpoint() | ||
| ... | ||
| >>> with PdbTestInput([ # doctest: +NORMALIZE_WHITESPACE | ||
| ... 'continue' | ||
| ... ]): | ||
| ... try: | ||
| ... test_function() | ||
| ... except Exception as e: | ||
| ... print(repr(e)) | ||
| ExceptionGroup('eg', [ValueError()]) | ||
| >>> | ||
| """ |
Member
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
make patchcheck on the CI doesn't like these 5-space indents.
iritkatriel
commented
Apr 13, 2023
iritkatriel commented
Member Author
This is wrong, I'll do something else.
iritkatriel
closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment