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

Function _is_setup_py

src/_pytest/doctest.py:141–145  ·  view source on GitHub ↗
(path: Path)

Source from the content-addressed store, hash-verified

139
140
141def _is_setup_py(path: Path) -> bool:
142 if path.name != "setup.py":
143 return False
144 contents = path.read_bytes()
145 return b"setuptools" in contents or b"distutils" in contents
146
147
148def _is_doctest(config: Config, path: Path, parent: Collector) -> bool:

Calls

no outgoing calls

Tested by

no test coverage detected