Define and use `TEST_ROOTS_DIR` (#14020)

This commit is contained in:
Adam Turner authored and GitHub committed 2025-11-03 16:09:48 +00:00
1 parent 8c86bad0ef
commit fcc9ca037d
3 files changed
+15 -12

No files matched your search

+2 -2
View File
@@ -18,7 +18,7 @@ from sphinx.util.console import colorize
from sphinx.util.logging import is_suppressed_warning, prefixed_warnings
from sphinx.util.parallel import ParallelTasks
from tests.utils import TESTS_ROOT
from tests.utils import TEST_ROOTS_DIR
if TYPE_CHECKING:
from sphinx.testing.util import SphinxTestApp
@@ -297,7 +297,7 @@ def force_colors():
def test_log_no_ansi_colors(tmp_path):
with force_colors():
wfile = tmp_path / 'warnings.txt'
srcdir = TESTS_ROOT / 'roots' / 'test-nitpicky-warnings'
srcdir = TEST_ROOTS_DIR / 'test-nitpicky-warnings'
argv = list(map(str, ['-b', 'html', srcdir, tmp_path, '-n', '-w', wfile]))
retcode = build_main(argv)
assert retcode == 0