File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -353,11 +353,17 @@ def caplog_fixture(caplog: pytest.LogCaptureFixture) -> pytest.LogCaptureFixture
353
353
354
354
355
355
@pytest .fixture (autouse = True )
356
- def clear_exception_tracback (request : pytest .FixtureRequest ) -> Generator [None ]:
356
+ def clear_exception_traceback (request : pytest .FixtureRequest ) -> Generator [None ]:
357
357
"""Clear exception traceback after each test."""
358
358
exceptions = []
359
359
for fixture_name in request .fixturenames :
360
- if fixture_name not in ("exception" , "side_effect" ):
360
+ if fixture_name not in (
361
+ "error" ,
362
+ "exc" ,
363
+ "exception" ,
364
+ "side_effect" ,
365
+ "sideeffect" ,
366
+ ):
361
367
continue
362
368
if isinstance (request .getfixturevalue (fixture_name ), BaseException ):
363
369
exceptions .append (request .getfixturevalue (fixture_name ))
You can’t perform that action at this time.
0 commit comments