]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-109989: Fix test_c_locale_coercion when PYTHONIOENCODING is set (#113378)
authorRonald Oussoren <ronaldoussoren@mac.com>
Fri, 22 Dec 2023 11:09:16 +0000 (12:09 +0100)
committerGitHub <noreply@github.com>
Fri, 22 Dec 2023 11:09:16 +0000 (12:09 +0100)
commit5f665e99e0b8a52415f83c2416eaf28abaacc3ae
tree4ed5c25a8abb5e7f0f0e5099c8da519597a766cc
parentbee627c1e29a070562d1a540a6e513d0daa322f5
gh-109989: Fix test_c_locale_coercion when PYTHONIOENCODING is set (#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.

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Lib/test/test_c_locale_coercion.py