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

Function _check_path

src/_pytest/nodes.py:96–101  ·  view source on GitHub ↗
(path: Path, fspath: LEGACY_PATH)

Source from the content-addressed store, hash-verified

94
95
96def _check_path(path: Path, fspath: LEGACY_PATH) -> None:
97 if Path(fspath) != path:
98 raise ValueError(
99 f"Path({fspath!r}) != {path!r}\n"
100 "if both path and fspath are given they need to be equal"
101 )
102
103
104def _imply_path(

Callers 2

fixed_hookMethod · 0.90
_imply_pathFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected