Skip to content

Commit 07318f9

Browse files
Add test for #9056
1 parent 19f7a5e commit 07318f9

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
"""Indirect tests that ExceptionGroup is inferred."""
2+
3+
try:
4+
ex_list = [ValueError("a"), ValueError("b"), Exception("c")]
5+
raise ExceptionGroup("exceptions!", ex_list)
6+
except* ValueError as exc:
7+
assert exc.exceptions
8+
assert exc.message
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[testoptions]
2+
min_pyver=3.11

0 commit comments

Comments
 (0)