Skip to content

Commit

Permalink
Merge pull request #8555 from tk0miya/8512_test_comment
Browse files Browse the repository at this point in the history
test: Add comment for UnicodeEncodeError handler (refs: #8512)
  • Loading branch information
tk0miya authored Dec 20, 2020
2 parents 2fa15e9 + 9a9d7f3 commit 7f1284f
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 7f1284f

Please sign in to comment.