Add finalizer/teardown function to be called after the last test within the requesting test context finished execution.
(self, finalizer: Callable[[], object])
| 545 | return self._pyfuncitem.session # type: ignore[no-any-return] |
| 546 | |
| 547 | def addfinalizer(self, finalizer: Callable[[], object]) -> None: |
| 548 | """Add finalizer/teardown function to be called after the last test |
| 549 | within the requesting test context finished execution.""" |
| 550 | # XXX usually this method is shadowed by fixturedef specific ones. |
| 551 | self._addfinalizer(finalizer, scope=self.scope) |
| 552 | |
| 553 | def _addfinalizer(self, finalizer: Callable[[], object], scope) -> None: |
| 554 | node = self._getscopeitem(scope) |
nothing calls this directly
no test coverage detected