summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_io.py
diff options
context:
space:
mode:
authorDong-hee Na <donghee.na@python.org>2022-05-24 00:37:01 (GMT)
committerGitHub <noreply@github.com>2022-05-24 00:37:01 (GMT)
commitf7fabae75c7b8ecd0c5673b5d62a15db24a05953 (patch)
treeb73c663d2e75ab6e581e5518a5a10732ad017156 /Lib/test/test_io.py
parente739ff141680fd7e2a762cf98c4352c6c850af1f (diff)
downloadcpython-f7fabae75c7b8ecd0c5673b5d62a15db24a05953.zip
cpython-f7fabae75c7b8ecd0c5673b5d62a15db24a05953.tar.gz
cpython-f7fabae75c7b8ecd0c5673b5d62a15db24a05953.tar.bz2
gh-93099: Fix _pyio to use locale module properly (gh-93136)
Diffstat (limited to 'Lib/test/test_io.py')
-rw-r--r--Lib/test/test_io.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/test/test_io.py b/Lib/test/test_io.py
index 039da53..daccbae 100644
--- a/Lib/test/test_io.py
+++ b/Lib/test/test_io.py
@@ -3570,6 +3570,10 @@ class TextIOWrapperTest(unittest.TestCase):
F.tell = lambda x: 0
t = self.TextIOWrapper(F(), encoding='utf-8')
+ def test_reconfigure_locale(self):
+ wrapper = io.TextIOWrapper(io.BytesIO(b"test"))
+ wrapper.reconfigure(encoding="locale")
+
def test_reconfigure_encoding_read(self):
# latin1 -> utf8
# (latin1 can decode utf-8 encoded string)