diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2022-10-21 23:27:41 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-21 23:27:41 (GMT) |
commit | c835b97c5f9f057fd6346b661be32ff0b2c060e7 (patch) | |
tree | aa0d2dc61da0809d211828be2c315ce31a39c730 /Lib/test/test_codecs.py | |
parent | 68f25e261e8df51e357dc0b6660ca771eac1e87f (diff) | |
download | cpython-c835b97c5f9f057fd6346b661be32ff0b2c060e7.zip cpython-c835b97c5f9f057fd6346b661be32ff0b2c060e7.tar.gz cpython-c835b97c5f9f057fd6346b661be32ff0b2c060e7.tar.bz2 |
gh-51511: Note that codecs.open()'s encoding parameter affects automatic conversion to binary mode (GH-94370)
(cherry picked from commit d9407b174c81fda33e6c09a6f988c9a7cb8368af)
Co-authored-by: Stanley <46876382+slateny@users.noreply.github.com>
Diffstat (limited to 'Lib/test/test_codecs.py')
-rw-r--r-- | Lib/test/test_codecs.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/test/test_codecs.py b/Lib/test/test_codecs.py index 42c600d..7cabe6a 100644 --- a/Lib/test/test_codecs.py +++ b/Lib/test/test_codecs.py @@ -709,7 +709,8 @@ class UTF16Test(ReadTest, unittest.TestCase): "spamspam", self.spambe) def test_bug691291(self): - # Files are always opened in binary mode, even if no binary mode was + # If encoding is not None, then + # files are always opened in binary mode, even if no binary mode was # specified. This means that no automatic conversion of '\n' is done # on reading and writing. s1 = 'Hello\r\nworld\r\n' |