Skip to content

Commit f71416a

Browse files
exceptiongroup test
1 parent 5177fff commit f71416a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/test_exceptiongroup.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ def test_exceptiongroup():
105105
"type": "chained",
106106
},
107107
"type": "ExceptionGroup",
108-
"value": "imports",
108+
"value": "imports (2 sub-exceptions)",
109109
},
110110
{
111111
"mechanism": {
@@ -137,7 +137,7 @@ def test_exceptiongroup():
137137
"type": "test_suite",
138138
},
139139
"type": "ExceptionGroup",
140-
"value": "nested",
140+
"value": "nested (3 sub-exceptions)",
141141
},
142142
]
143143

@@ -183,7 +183,7 @@ def test_exceptiongroup_simple():
183183
}
184184

185185
assert exception_values[1]["type"] == "ExceptionGroup"
186-
assert exception_values[1]["value"] == "simple"
186+
assert exception_values[1]["value"] == "simple (1 sub-exception)"
187187
assert exception_values[1]["mechanism"] == {
188188
"type": "test_suite",
189189
"handled": False,

0 commit comments

Comments
 (0)