We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f3c7bd7 commit e711e93Copy full SHA for e711e93
tests/conftest.py
@@ -353,11 +353,17 @@ def caplog_fixture(caplog: pytest.LogCaptureFixture) -> pytest.LogCaptureFixture
353
354
355
@pytest.fixture(autouse=True)
356
-def clear_exception_tracback(request: pytest.FixtureRequest) -> Generator[None]:
+def clear_exception_traceback(request: pytest.FixtureRequest) -> Generator[None]:
357
"""Clear exception traceback after each test."""
358
exceptions = []
359
for fixture_name in request.fixturenames:
360
- if fixture_name not in ("exception", "side_effect"):
+ if fixture_name not in (
361
+ "error",
362
+ "exc",
363
+ "exception",
364
+ "side_effect",
365
+ "sideeffect",
366
+ ):
367
continue
368
if isinstance(request.getfixturevalue(fixture_name), BaseException):
369
exceptions.append(request.getfixturevalue(fixture_name))
0 commit comments