]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.11] gh-109989: Fix test_c_locale_coercion when PYTHONIOENCODING is set (GH-113378...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sat, 23 Dec 2023 20:58:18 +0000 (21:58 +0100)
committerGitHub <noreply@github.com>
Sat, 23 Dec 2023 20:58:18 +0000 (21:58 +0100)
commit9000b8a71343f514bdfd6638e89b64b852b6c3ac
tree9ef4cfc3a6c868dc4fc5e556f01c7547c6a71d29
parent478da38e742a230353a41081ab5c5e4029eceef3
[3.11] gh-109989: Fix test_c_locale_coercion when PYTHONIOENCODING is set (GH-113378) (#113399)

gh-109989: Fix test_c_locale_coercion when PYTHONIOENCODING is set (GH-113378)

* gh-109989: Fix test_c_locale_coercion when PYTHONIOENCODING is set

This fixes the existing tests when PYTHONIOENCODING is
set by unsetting PYTHONIOENCODING.

Also add a test that explicitly checks what happens
when PYTHONIOENCODING is set.

(cherry picked from commit 5f665e99e0b8a52415f83c2416eaf28abaacc3ae)

Co-authored-by: Ronald Oussoren <ronaldoussoren@mac.com>
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Lib/test/test_c_locale_coercion.py