Skip to content

bpo-44647: Fix test_httpservers failing on Unicode characters in os.environ on Windows#27161

Merged
ambv merged 7 commits intopython:mainfrom
ambv:debug-azure-pipelines-accept
Jul 15, 2021
Merged

bpo-44647: Fix test_httpservers failing on Unicode characters in os.environ on Windows#27161
ambv merged 7 commits intopython:mainfrom
ambv:debug-azure-pipelines-accept

Conversation

@ambv
Copy link
Contributor

@ambv ambv commented Jul 15, 2021

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.

Check the issue for more details, and the comments in this PR for hunting the root cause down. This was first encountered when working on GH-27115.

https://bugs.python.org/issue44647

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

OS-windows skip news tests Tests in the Lib/test dir

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants