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

Method matching_platform

src/_pytest/pytester.py:160–166  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

158 return open_files
159
160 def matching_platform(self) -> bool:
161 try:
162 subprocess.run(("lsof", "-v"), check=True)
163 except (OSError, subprocess.CalledProcessError):
164 return False
165 else:
166 return True
167
168 @hookimpl(wrapper=True, tryfirst=True)
169 def pytest_runtest_protocol(self, item: Item) -> Generator[None, object, object]:

Callers 1

pytest_configureFunction · 0.95

Calls 1

runMethod · 0.45

Tested by

no test coverage detected