summaryrefslogtreecommitdiff
path: root/Lib/test/test_unicodedata.py
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@haypocalc.com>2010-03-04 12:14:57 +0000
committerVictor Stinner <victor.stinner@haypocalc.com>2010-03-04 12:14:57 +0000
commit7ed9c4c9102e2098bdbb80456f30e20fb4a9ab90 (patch)
tree71ca738286f473db8fb84489f6ba1db335374b65 /Lib/test/test_unicodedata.py
parent2e5432e4c19f160b13b628cce38879bbf0175b19 (diff)
downloadcpython-git-7ed9c4c9102e2098bdbb80456f30e20fb4a9ab90.tar.gz
Merged revisions 78646 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk ........ r78646 | victor.stinner | 2010-03-04 13:09:33 +0100 (jeu., 04 mars 2010) | 5 lines Issue #1054943: Fix unicodedata.normalize('NFC', text) for the Public Review Issue #29. PR #29 was released in february 2004! ........
Diffstat (limited to 'Lib/test/test_unicodedata.py')
-rw-r--r--Lib/test/test_unicodedata.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/Lib/test/test_unicodedata.py b/Lib/test/test_unicodedata.py
index 2ecb09eafd..497886975d 100644
--- a/Lib/test/test_unicodedata.py
+++ b/Lib/test/test_unicodedata.py
@@ -187,6 +187,11 @@ class UnicodeFunctionsTest(UnicodeDatabaseTest):
# The rest can be found in test_normalization.py
# which requires an external file.
+ def test_pr29(self):
+ # http://www.unicode.org/review/pr-29.html
+ for text in (u"\u0b47\u0300\u0b3e", u"\u1100\u0300\u1161"):
+ self.assertEqual(self.db.normalize('NFC', text), text)
+
def test_east_asian_width(self):
eaw = self.db.east_asian_width
self.assertRaises(TypeError, eaw, b'a')