mirror of
https://github.com/python/cpython.git
synced 2026-05-12 21:40:46 +00:00
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! ........
This commit is contained in:
parent
c9b7cc0ffa
commit
bb71dc4396
3 changed files with 9 additions and 1 deletions
|
|
@ -185,6 +185,11 @@ def test_normalize(self):
|
|||
# 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, 'a')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue