]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-44647: Fix test_httpservers failing on Unicode characters in os.environ on Window...
authorŁukasz Langa <lukasz@langa.pl>
Thu, 15 Jul 2021 19:14:24 +0000 (21:14 +0200)
committerGitHub <noreply@github.com>
Thu, 15 Jul 2021 19:14:24 +0000 (21:14 +0200)
commit82b218f36ce6ef910bda5af227a9fd5be613c94f
tree29ee7df4d591459f46fab22631c22d6992a9ad59
parenta86f7dae0acf918d54086cb85e5a0b0bedeedce7
bpo-44647: Fix test_httpservers failing on Unicode characters in os.environ on Windows (GH-27161)

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.
Lib/test/test_httpservers.py