mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
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. ........
This commit is contained in:
parent
7442bd9cdb
commit
71efeb7cbf
3 changed files with 10 additions and 7 deletions
|
@ -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()
|
||||
|
@ -271,6 +271,11 @@ class UnicodeMiscTest(UnicodeDatabaseTest):
|
|||
[0]
|
||||
)
|
||||
|
||||
def test_buf_4971(self):
|
||||
# LETTER DZ WITH CARON: DZ, Dz, dz
|
||||
self.assertEqual("\u01c4".title(), "\u01c5")
|
||||
self.assertEqual("\u01c5".title(), "\u01c5")
|
||||
self.assertEqual("\u01c6".title(), "\u01c5")
|
||||
|
||||
def test_main():
|
||||
test.support.run_unittest(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue