Skip to content

Commit

Permalink
test: Add comment for UnicodeEncodeError handler (refs: #8512)
Browse files Browse the repository at this point in the history
  • Loading branch information
tk0miya committed Dec 19, 2020
1 parent aae2f19 commit 9a9d7f3
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 @@ -36,6 +36,8 @@ def nonascii_srcdir(request, rootdir, sphinx_test_tempdir):
if not srcdir.exists():
(rootdir / 'test-root').copytree(srcdir)
except UnicodeEncodeError:
# Now Python 3.7+ follows PEP-540 and uses utf-8 encoding for filesystem by default.
# So this error handling will be no longer used (after dropping python 3.6 support).
srcdir = basedir / 'all'
if not srcdir.exists():
(rootdir / 'test-root').copytree(srcdir)
Expand Down

0 comments on commit 9a9d7f3

Please sign in to comment.