mirror of
https://github.com/python/cpython.git
synced 2025-08-03 08:34:29 +00:00
Bug #1704793: Return UTF-16 pair if unicodedata.lookup cannot
represent the result in a single character.
This commit is contained in:
parent
f25e35b9ec
commit
f1e0b3f630
3 changed files with 17 additions and 16 deletions
|
@ -214,6 +214,9 @@ class UnicodeMiscTest(UnicodeDatabaseTest):
|
|||
count += 1
|
||||
self.assert_(count >= 10) # should have tested at least the ASCII digits
|
||||
|
||||
def test_bug_1704793(self):
|
||||
self.assertEquals(self.db.lookup("GOTHIC LETTER FAIHU"), u'\U00010346')
|
||||
|
||||
def test_main():
|
||||
test.test_support.run_unittest(
|
||||
UnicodeMiscTest,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue