-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/main'
- Loading branch information
Showing
17 changed files
with
245 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
try: | ||
raise OSError("blah") | ||
except* ExceptionGroup as e: | ||
pass | ||
|
||
|
||
try: | ||
async with trio.open_nursery() as nursery: | ||
# Make two concurrent calls to child() | ||
nursery.start_soon(child) | ||
nursery.start_soon(child) | ||
except* ValueError: | ||
pass | ||
|
||
try: | ||
try: | ||
raise ValueError(42) | ||
except: | ||
try: | ||
raise TypeError(int) | ||
except* Exception: | ||
pass | ||
1 / 0 | ||
except Exception as e: | ||
exc = e | ||
|
||
try: | ||
try: | ||
raise FalsyEG("eg", [TypeError(1), ValueError(2)]) | ||
except* TypeError as e: | ||
tes = e | ||
raise | ||
except* ValueError as e: | ||
ves = e | ||
pass | ||
except Exception as e: | ||
exc = e | ||
|
||
try: | ||
try: | ||
raise orig | ||
except* (TypeError, ValueError) as e: | ||
raise SyntaxError(3) from e | ||
except BaseException as e: | ||
exc = e | ||
|
||
try: | ||
try: | ||
raise orig | ||
except* OSError as e: | ||
raise TypeError(3) from e | ||
except ExceptionGroup as e: | ||
exc = e |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,111 @@ | ||
try: | ||
raise OSError("blah") | ||
except * ExceptionGroup as e: | ||
pass | ||
|
||
|
||
try: | ||
async with trio.open_nursery() as nursery: | ||
# Make two concurrent calls to child() | ||
nursery.start_soon(child) | ||
nursery.start_soon(child) | ||
except *ValueError: | ||
pass | ||
|
||
try: | ||
try: | ||
raise ValueError(42) | ||
except: | ||
try: | ||
raise TypeError(int) | ||
except *(Exception): | ||
pass | ||
1 / 0 | ||
except Exception as e: | ||
exc = e | ||
|
||
try: | ||
try: | ||
raise FalsyEG("eg", [TypeError(1), ValueError(2)]) | ||
except \ | ||
*TypeError as e: | ||
tes = e | ||
raise | ||
except * ValueError as e: | ||
ves = e | ||
pass | ||
except Exception as e: | ||
exc = e | ||
|
||
try: | ||
try: | ||
raise orig | ||
except *(TypeError, ValueError, *OTHER_EXCEPTIONS) as e: | ||
raise SyntaxError(3) from e | ||
except BaseException as e: | ||
exc = e | ||
|
||
try: | ||
try: | ||
raise orig | ||
except\ | ||
* OSError as e: | ||
raise TypeError(3) from e | ||
except ExceptionGroup as e: | ||
exc = e | ||
|
||
# output | ||
|
||
try: | ||
raise OSError("blah") | ||
except* ExceptionGroup as e: | ||
pass | ||
|
||
|
||
try: | ||
async with trio.open_nursery() as nursery: | ||
# Make two concurrent calls to child() | ||
nursery.start_soon(child) | ||
nursery.start_soon(child) | ||
except* ValueError: | ||
pass | ||
|
||
try: | ||
try: | ||
raise ValueError(42) | ||
except: | ||
try: | ||
raise TypeError(int) | ||
except* (Exception): | ||
pass | ||
1 / 0 | ||
except Exception as e: | ||
exc = e | ||
|
||
try: | ||
try: | ||
raise FalsyEG("eg", [TypeError(1), ValueError(2)]) | ||
except* TypeError as e: | ||
tes = e | ||
raise | ||
except* ValueError as e: | ||
ves = e | ||
pass | ||
except Exception as e: | ||
exc = e | ||
|
||
try: | ||
try: | ||
raise orig | ||
except* (TypeError, ValueError, *OTHER_EXCEPTIONS) as e: | ||
raise SyntaxError(3) from e | ||
except BaseException as e: | ||
exc = e | ||
|
||
try: | ||
try: | ||
raise orig | ||
except* OSError as e: | ||
raise TypeError(3) from e | ||
except ExceptionGroup as e: | ||
exc = e |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.