(fixturedef: FixtureDef[object])
| 49 | |
| 50 | |
| 51 | def pytest_fixture_post_finalizer(fixturedef: FixtureDef[object]) -> None: |
| 52 | if fixturedef.cached_result is not None: |
| 53 | config = fixturedef._fixturemanager.config |
| 54 | if config.option.setupshow: |
| 55 | _show_fixture_action(fixturedef, "TEARDOWN") |
| 56 | if hasattr(fixturedef, "cached_param"): |
| 57 | del fixturedef.cached_param # type: ignore[attr-defined] |
| 58 | |
| 59 | |
| 60 | def _show_fixture_action(fixturedef: FixtureDef[object], msg: str) -> None: |
nothing calls this directly
no test coverage detected