]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-44647: Fix test_httpservers failing on Unicode characters in os.environ on Window...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Thu, 15 Jul 2021 20:09:26 +0000 (13:09 -0700)
committerGitHub <noreply@github.com>
Thu, 15 Jul 2021 20:09:26 +0000 (22:09 +0200)
commit356bdff1e952f2ab7fdebae855bd78b401b735c4
treea09d1b101719f2bf1b37ce1b38307f0b8b0b0bc5
parent47695e3c88343e794d37333853b2ba3f16505c5d
bpo-44647: Fix test_httpservers failing on Unicode characters in os.environ on Windows (GH-27161) (#27169)

GH-23638 introduced a new test for Accept: headers in CGI HTTP servers. This test serializes all of os.environ on the server side. For non-UTF8 locales this can fail for some Unicode characters found in environment variables. This change fixes the HTTP_ACCEPT test.
(cherry picked from commit 82b218f36ce6ef910bda5af227a9fd5be613c94f)

Co-authored-by: Ɓukasz Langa <lukasz@langa.pl>
Lib/test/test_httpservers.py