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

Function pytest_configure

src/_pytest/pytester.py:111–121  ·  view source on GitHub ↗
(config: Config)

Source from the content-addressed store, hash-verified

109
110
111def pytest_configure(config: Config) -> None:
112 if config.getvalue("lsof"):
113 checker = LsofFdLeakChecker()
114 if checker.matching_platform():
115 config.pluginmanager.register(checker)
116
117 config.addinivalue_line(
118 "markers",
119 "pytester_example_path(*path_segments): join the given path "
120 "segments to `pytester_example_dir` for this test.",
121 )
122
123
124class LsofFdLeakChecker:

Callers

nothing calls this directly

Calls 5

matching_platformMethod · 0.95
LsofFdLeakCheckerClass · 0.85
registerMethod · 0.80
addinivalue_lineMethod · 0.80
getvalueMethod · 0.45

Tested by

no test coverage detected