You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/en/how-to/assert.rst
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -225,9 +225,9 @@ Check the documentation on :class:`pytest.RaisesGroup` and :class:`pytest.Raises
225
225
if very_unlucky():
226
226
excs.append(EXTREMELYBADERROR())
227
227
raise ExceptionGroup("", excs)
228
-
#this passes regardless of if there's other exceptions
228
+
#This passes regardless of if there's other exceptions.
229
229
assert excinfo.group_contains(ValueError)
230
-
#you can't simply list all exceptions you *don't* want to get here
230
+
#You can't simply list all exceptions you *don't* want to get here.
231
231
232
232
233
233
There is no good way of using :func:`excinfo.group_contains() <pytest.ExceptionInfo.group_contains>` to ensure you're not getting *any* other exceptions than the one you expected.
0 commit comments