mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Merge pull request #8555 from tk0miya/8512_test_comment
test: Add comment for UnicodeEncodeError handler (refs: #8512)
This commit is contained in:
commit
7f1284f2e7
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user