diff options
author | Dong-hee Na <donghee.na@python.org> | 2022-05-24 00:37:01 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-24 00:37:01 (GMT) |
commit | f7fabae75c7b8ecd0c5673b5d62a15db24a05953 (patch) | |
tree | b73c663d2e75ab6e581e5518a5a10732ad017156 /Lib/test/test_io.py | |
parent | e739ff141680fd7e2a762cf98c4352c6c850af1f (diff) | |
download | cpython-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.py | 4 |
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) |