mirror of
https://github.com/python/cpython.git
synced 2025-12-08 06:10:17 +00:00
Issue #15984: Merge PyUnicode doc from 3.5
This commit is contained in:
commit
cda80940ed
35 changed files with 64 additions and 70 deletions
|
|
@ -2401,7 +2401,7 @@ def test_decode_unicode(self):
|
|||
self.assertRaises(TypeError, decoder, "xxx")
|
||||
|
||||
def test_unicode_escape(self):
|
||||
# Escape-decoding an unicode string is supported ang gives the same
|
||||
# Escape-decoding a unicode string is supported ang gives the same
|
||||
# result as decoding the equivalent ASCII bytes string.
|
||||
self.assertEqual(codecs.unicode_escape_decode(r"\u1234"), ("\u1234", 6))
|
||||
self.assertEqual(codecs.unicode_escape_decode(br"\u1234"), ("\u1234", 6))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue