Bug #1704793: Return UTF-16 pair if unicodedata.lookup cannot

represent the result in a single character.
This commit is contained in:
Martin v. Löwis 2007-07-28 07:03:05 +00:00
parent f25e35b9ec
commit f1e0b3f630
3 changed files with 17 additions and 16 deletions

View file

@ -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,