mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Issue #28321: Fixed writing non-BMP characters with binary format in plistlib.
This commit is contained in:
commit
db8d6265fa
3 changed files with 10 additions and 1 deletions
|
@ -360,6 +360,13 @@ class TestPlistlib(unittest.TestCase):
|
|||
plistlib.dumps,
|
||||
testString)
|
||||
|
||||
def test_non_bmp_characters(self):
|
||||
pl = {'python': '\U0001f40d'}
|
||||
for fmt in ALL_FORMATS:
|
||||
with self.subTest(fmt=fmt):
|
||||
data = plistlib.dumps(pl, fmt=fmt)
|
||||
self.assertEqual(plistlib.loads(data), pl)
|
||||
|
||||
def test_nondictroot(self):
|
||||
for fmt in ALL_FORMATS:
|
||||
with self.subTest(fmt=fmt):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue