(config: pytest.Config)
| 52 | |
| 53 | |
| 54 | def 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) |