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

Method test_invalid_path

testing/test_pathlib.py:268–270  ·  view source on GitHub ↗
(self, tmp_path: Path)

Source from the content-addressed store, hash-verified

266 assert str(root1) not in sys.path[:-1]
267
268 def test_invalid_path(self, tmp_path: Path) -> None:
269 with pytest.raises(ImportError):
270 import_path(tmp_path / "invalid.py", root=tmp_path)
271
272 @pytest.fixture
273 def simple_module(self, tmp_path: Path) -> Path:

Callers

nothing calls this directly

Calls 1

import_pathFunction · 0.90

Tested by

no test coverage detected