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

Function pytest_load_initial_conftests

src/_pytest/pythonpath.py:13–16  ·  view source on GitHub ↗
(early_config: Config)

Source from the content-addressed store, hash-verified

11
12@pytest.hookimpl(tryfirst=True)
13def pytest_load_initial_conftests(early_config: Config) -> None:
14 # `pythonpath = a b` will set `sys.path` to `[a, b, x, y, z, ...]`
15 for path in reversed(early_config.getini("pythonpath")):
16 sys.path.insert(0, str(path))
17
18
19@pytest.hookimpl(trylast=True)

Callers

nothing calls this directly

Calls 2

insertMethod · 0.80
getiniMethod · 0.45

Tested by

no test coverage detected