Sitelet https://github.com/python/cpython/commit/8bb54eba3206d51ad98ee28eda21e71d9cc40522
Skip to content

Commit 8bb54eb

Browse files
committed
Update comments
1 parent 9bbafbb commit 8bb54eb

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

‎Lib/test/test_codecs.py‎

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4061,7 +4061,11 @@ def test_pickle(self):
40614061
@unittest.skipIf(_testinternalcapi is None, 'need _testinternalcapi module')
40624062
class LocaleCodecTest(unittest.TestCase):
40634063
"""
4064-
Test indirectly _Py_DecodeUTF8Ex() and _Py_EncodeUTF8Ex().
4064+
Test public Py_EncodeLocale() and Py_DecodeLocale() C API.
4065+
4066+
Test internal _Py_EncodeLocale() and _Py_DecodeLocale() C API.
4067+
4068+
Test indirectly _Py_DecodeUTF8() and _Py_EncodeUTF8().
40654069
"""
40664070
ENCODING = sys.getfilesystemencoding()
40674071
STRINGS = ("ascii", "ulatin1:\xa7\xe9",
@@ -4078,7 +4082,7 @@ def encode_locale_surrogateescape(self, text):
40784082
return _testlimitedcapi.encode_locale(text)
40794083

40804084
def encode_locale(self, text, errors="strict"):
4081-
# Test the internal _Py_EncodeLocale() C API
4085+
# Test internal _Py_EncodeLocale() C API
40824086
return _testinternalcapi.encode_locale(text, 0, errors)
40834087

40844088
def check_encode_strings(self, errors):
@@ -4141,7 +4145,7 @@ def test_encode_unsupported_error_handler(self):
41414145
self.assertEqual(str(cm.exception), 'unsupported error handler')
41424146

41434147
def decode_locale(self, encoded, errors="strict"):
4144-
# Test the internal _Py_DecodeLocale() C API
4148+
# Test internal _Py_DecodeLocale() C API
41454149
return _testinternalcapi.decode_locale(encoded, 0, errors)
41464150

41474151
def decode_locale_surrogateescape(self, encoded):

0 commit comments

Comments
 (0)