MCPcopy Create free account
hub / github.com/pytest-dev/pytest / _addfinalizer

Method _addfinalizer

src/_pytest/fixtures.py:553–555  ·  view source on GitHub ↗
(self, finalizer: Callable[[], object], scope)

Source from the content-addressed store, hash-verified

551 self._addfinalizer(finalizer, scope=self.scope)
552
553 def _addfinalizer(self, finalizer: Callable[[], object], scope) -> None:
554 node = self._getscopeitem(scope)
555 node.addfinalizer(finalizer)
556
557 def applymarker(self, marker: Union[str, MarkDecorator]) -> None:
558 """Apply a marker to a single test function invocation.

Callers 1

addfinalizerMethod · 0.95

Calls 2

_getscopeitemMethod · 0.95
addfinalizerMethod · 0.45

Tested by

no test coverage detected