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

Method __init__

src/_pytest/legacypath.py:278–282  ·  view source on GitHub ↗
(
        self, tmppath_factory: TempPathFactory, *, _ispytest: bool = False
    )

Source from the content-addressed store, hash-verified

276 _tmppath_factory: TempPathFactory
277
278 def __init__(
279 self, tmppath_factory: TempPathFactory, *, _ispytest: bool = False
280 ) -> None:
281 check_ispytest(_ispytest)
282 self._tmppath_factory = tmppath_factory
283
284 def mktemp(self, basename: str, numbered: bool = True) -> LEGACY_PATH:
285 """Same as :meth:`TempPathFactory.mktemp`, but returns a ``_pytest.compat.LEGACY_PATH`` object."""

Callers

nothing calls this directly

Calls 1

check_ispytestFunction · 0.90

Tested by

no test coverage detected