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

Method matching_platform

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

Source from the content-addressed store, hash-verified

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

Callers 1

pytest_configureFunction · 0.95

Calls 1

runMethod · 0.45

Tested by

no test coverage detected