mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
[tests] use deduced `srcdir
` instead of an explicit one (#12124)
This commit is contained in:
parent
bf0bec3b4b
commit
6ac2210109
@ -1635,13 +1635,13 @@ def test_gettext_disallow_fuzzy_translations(app):
|
||||
|
||||
|
||||
@pytest.mark.sphinx('html', testroot='basic', confoverrides={'language': 'de'})
|
||||
def test_customize_system_message(make_app, app_params, sphinx_test_tempdir):
|
||||
def test_customize_system_message(make_app, app_params):
|
||||
try:
|
||||
# clear translators cache
|
||||
locale.translators.clear()
|
||||
|
||||
# prepare message catalog (.po)
|
||||
locale_dir = sphinx_test_tempdir / 'basic' / 'locales' / 'de' / 'LC_MESSAGES'
|
||||
locale_dir = app_params.kwargs['srcdir'] / 'locales' / 'de' / 'LC_MESSAGES'
|
||||
locale_dir.mkdir(parents=True, exist_ok=True)
|
||||
with (locale_dir / 'sphinx.po').open('wb') as f:
|
||||
catalog = Catalog()
|
||||
|
Loading…
Reference in New Issue
Block a user