]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-109237: Fix test_site for non-ASCII working directory (#109238)
authorVictor Stinner <vstinner@python.org>
Sun, 10 Sep 2023 22:04:35 +0000 (00:04 +0200)
committerGitHub <noreply@github.com>
Sun, 10 Sep 2023 22:04:35 +0000 (22:04 +0000)
commitcbb3a6f8ada3d133c3ab9f9465b65067fce5bb42
treecc96f70028b8ef6d912c46ef6723eee990a4ab34
parentd6892c2b9263b39ea1c7905667942914b6a24b2c
gh-109237: Fix test_site for non-ASCII working directory (#109238)

Fix test_site.test_underpth_basic() when the working directory
contains at least one non-ASCII character: encode the "._pth" file to
UTF-8 and enable the UTF-8 Mode to use UTF-8 for the child process
stdout.
Lib/test/test_site.py
Misc/NEWS.d/next/Tests/2023-09-10-22-32-20.gh-issue-109237.SvgKwD.rst [new file with mode: 0644]