Bug #1704793: Return UTF-16 pair if unicodedata.lookup cannot
represent the result in a single character.
diff --git a/Lib/test/test_unicodedata.py b/Lib/test/test_unicodedata.py
index 0023bf4..574178d 100644
--- a/Lib/test/test_unicodedata.py
+++ b/Lib/test/test_unicodedata.py
@@ -214,6 +214,9 @@
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,