MCPcopy
hub / github.com/sphinx-doc/sphinx / pytest_report_header

Function pytest_report_header

tests/conftest.py:54–63  ·  view source on GitHub ↗
(config: pytest.Config)

Source from the content-addressed store, hash-verified

52
53
54def pytest_report_header(config: pytest.Config) -> str:
55 lines = [
56 f'libraries: Sphinx-{sphinx.__display_version__}, docutils-{docutils.__version__}',
57 ]
58 if sys.version_info[:2] >= (3, 13):
59 lines.append(f'GIL enabled?: {sys._is_gil_enabled()}')
60 lines.append(f'test roots directory: {TEST_ROOTS_DIR}')
61 if hasattr(config, '_tmp_path_factory'):
62 lines.append(f'base tmp_path: {config._tmp_path_factory.getbasetemp()}')
63 return '\n'.join(lines)
64
65
66@pytest.fixture(autouse=True)

Callers

nothing calls this directly

Calls 2

appendMethod · 0.45
joinMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…