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

Function _is_setup_py

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

Source from the content-addressed store, hash-verified

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

Calls

no outgoing calls

Tested by

no test coverage detected