mirror of
https://github.com/python/cpython.git
synced 2025-08-28 12:45:07 +00:00
merge with 3.2
This commit is contained in:
commit
5f9459fbed
2 changed files with 6 additions and 3 deletions
|
@ -666,6 +666,8 @@ class UTF8Test(ReadTest):
|
|||
self.assertEqual(b"\xf0\x90\xbf\xbf\xed\xa0\x80".decode("utf-8", "surrogatepass"),
|
||||
"\U00010fff\uD800")
|
||||
self.assertTrue(codecs.lookup_error("surrogatepass"))
|
||||
with self.assertRaises(UnicodeDecodeError):
|
||||
b"abc\xed\xa0".decode("utf-8", "surrogatepass")
|
||||
|
||||
@unittest.skipUnless(sys.platform == 'win32',
|
||||
'cp65001 is a Windows-only codec')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue