diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2009-04-26 01:01:58 (GMT) |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2009-04-26 01:01:58 (GMT) |
commit | 2a574aed7e1ab12ef6f8b595625638c17d5912fa (patch) | |
tree | 2bd6e7b5c738ca17b0c3d49c6ff40c99e8ecb420 /Lib | |
parent | 47c975385d2c05d6394d63adbbf8691b0eb5e425 (diff) | |
download | cpython-2a574aed7e1ab12ef6f8b595625638c17d5912fa.zip cpython-2a574aed7e1ab12ef6f8b595625638c17d5912fa.tar.gz cpython-2a574aed7e1ab12ef6f8b595625638c17d5912fa.tar.bz2 |
Merged revisions 71947 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r71947 | martin.v.loewis | 2009-04-26 02:53:18 +0200 (So, 26 Apr 2009) | 3 lines
Issue #4971: Fix titlecase for characters that are their own
titlecase, but not their own uppercase.
........
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/test/test_unicodedata.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/Lib/test/test_unicodedata.py b/Lib/test/test_unicodedata.py index 18f37f8..1651b46 100644 --- a/Lib/test/test_unicodedata.py +++ b/Lib/test/test_unicodedata.py @@ -20,7 +20,7 @@ encoding = 'utf-8' class UnicodeMethodsTest(unittest.TestCase): # update this, if the database changes - expectedchecksum = 'b7db9b5f1d804976fa921d2009cbef6f025620c1' + expectedchecksum = '6ec65b65835614ec00634c674bba0e50cd32c189' def test_method_checksum(self): h = hashlib.sha1() @@ -270,6 +270,11 @@ class UnicodeMiscTest(UnicodeDatabaseTest): [0] ) + def test_buf_4971(self): + # LETTER DZ WITH CARON: DZ, Dz, dz + self.assertEqual(u"\u01c4".title(), u"\u01c5") + self.assertEqual(u"\u01c5".title(), u"\u01c5") + self.assertEqual(u"\u01c6".title(), u"\u01c5") def test_main(): test.test_support.run_unittest( |