mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Format `tests/` (#12760)
This commit is contained in:
@@ -19,7 +19,8 @@ if TYPE_CHECKING:
|
||||
|
||||
|
||||
def _init_console(
|
||||
locale_dir: str | None = sphinx.locale._LOCALE_DIR, catalog: str = 'sphinx',
|
||||
locale_dir: str | None = sphinx.locale._LOCALE_DIR,
|
||||
catalog: str = 'sphinx',
|
||||
) -> tuple[gettext.NullTranslations, bool]:
|
||||
"""Monkeypatch ``init_console`` to skip its action.
|
||||
|
||||
@@ -46,9 +47,9 @@ def rootdir() -> Path:
|
||||
|
||||
|
||||
def pytest_report_header(config: pytest.Config) -> str:
|
||||
header = f"libraries: Sphinx-{sphinx.__display_version__}, docutils-{docutils.__version__}"
|
||||
header = f'libraries: Sphinx-{sphinx.__display_version__}, docutils-{docutils.__version__}'
|
||||
if hasattr(config, '_tmp_path_factory'):
|
||||
header += f"\nbase tmp_path: {config._tmp_path_factory.getbasetemp()}"
|
||||
header += f'\nbase tmp_path: {config._tmp_path_factory.getbasetemp()}'
|
||||
return header
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user