diff --git a/tests/test_build.py b/tests/test_build.py index 9dcf78165..80e068eeb 100644 --- a/tests/test_build.py +++ b/tests/test_build.py @@ -37,6 +37,8 @@ def nonascii_srcdir(request, rootdir, sphinx_test_tempdir): (rootdir / 'test-root').copytree(srcdir) except UnicodeEncodeError: srcdir = basedir / 'all' + if not srcdir.exists(): + (rootdir / 'test-root').copytree(srcdir) else: # add a doc with a non-ASCII file name to the source dir (srcdir / (test_name + '.txt')).write_text(dedent("""