summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2007-07-28 07:03:05 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2007-07-28 07:03:05 (GMT)
commitf1e0b3f6307084dc3429bd5a1361a5be7be708bb (patch)
tree2bae20bba6c1842c7880bfd48a5ba8d2199e1aca /Lib
parentf25e35b9ec2bb87833108c5bb615113a93894dce (diff)
downloadcpython-f1e0b3f6307084dc3429bd5a1361a5be7be708bb.zip
cpython-f1e0b3f6307084dc3429bd5a1361a5be7be708bb.tar.gz
cpython-f1e0b3f6307084dc3429bd5a1361a5be7be708bb.tar.bz2
Bug #1704793: Return UTF-16 pair if unicodedata.lookup cannot
represent the result in a single character.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_unicodedata.py3
1 files changed, 3 insertions, 0 deletions
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 @@ 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,