MCPcopy
hub / github.com/pytest-dev/pytest / pytest_configure

Function pytest_configure

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

Source from the content-addressed store, hash-verified

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