Skip to content

Commit

Permalink
Merge pull request #8512 from jbms/fix-nonascii_srcdir
Browse files Browse the repository at this point in the history
Fix nonascii_srcdir to work when non-ascii directories aren't supported
  • Loading branch information
tk0miya committed Dec 19, 2020
2 parents 57ed10c + d737ecd commit aae2f19
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/test_build.py
Original file line number Diff line number Diff line change
Expand Up @@ -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("""
Expand Down

0 comments on commit aae2f19

Please sign in to comment.