Skip to content

Commit

Permalink
[tests] use deduced srcdir instead of an explicit one (sphinx-doc…
Browse files Browse the repository at this point in the history
  • Loading branch information
picnixz committed Mar 18, 2024
1 parent bf0bec3 commit 6ac2210
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_intl/test_intl.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 6ac2210

Please sign in to comment.