Sphinx' test run lasts quite long, so running in parallel is beneficial for everybody building the package. The parallel run uncovered a test bug, fix for which has been submitted upstream.
29 lines
1.2 KiB
Diff
29 lines
1.2 KiB
Diff
From b9386884a3a4d65db1d69b83026339c5d72442d5 Mon Sep 17 00:00:00 2001
|
|
From: Karolina Surma <ksurma@redhat.com>
|
|
Date: Mon, 29 Jun 2026 11:00:42 +0200
|
|
Subject: [PATCH] Fix test_gettext_literalblock_additional to use the correct
|
|
test root
|
|
|
|
test-root doesn't contain the source file for literalblock.pot. The test
|
|
passed sequentially because other tests using test root 'intl' left the
|
|
file in the same srcdir. With pytest-xdist, the test started correctly failing,
|
|
as no leftover file was available during the test run.
|
|
Using the test root 'intl', which contains literalblock.txt, fixes the
|
|
test.
|
|
---
|
|
tests/test_builders/test_build_gettext.py | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/tests/test_builders/test_build_gettext.py b/tests/test_builders/test_build_gettext.py
|
|
index 30798cc5070..8a1827ba281 100644
|
|
--- a/tests/test_builders/test_build_gettext.py
|
|
+++ b/tests/test_builders/test_build_gettext.py
|
|
@@ -288,7 +288,7 @@ def test_gettext_prolog_epilog_substitution_excluded(app: SphinxTestApp) -> None
|
|
|
|
@pytest.mark.sphinx(
|
|
'gettext',
|
|
- testroot='root',
|
|
+ testroot='intl',
|
|
srcdir='gettext',
|
|
confoverrides={
|
|
'gettext_compact': False,
|