mirror of
https://github.com/python/cpython.git
synced 2025-10-07 07:31:46 +00:00
bpo-36549: str.capitalize now titlecases the first character instead of uppercasing it (GH-12804)
This commit is contained in:
parent
f13c5c8b94
commit
b015fc86f7
5 changed files with 10 additions and 5 deletions
|
@ -977,7 +977,7 @@ class CommonTest(BaseTest):
|
|||
def test_capitalize_nonascii(self):
|
||||
# check that titlecased chars are lowered correctly
|
||||
# \u1ffc is the titlecased char
|
||||
self.checkequal('\u03a9\u0399\u1ff3\u1ff3\u1ff3',
|
||||
self.checkequal('\u1ffc\u1ff3\u1ff3\u1ff3',
|
||||
'\u1ff3\u1ff3\u1ffc\u1ffc', 'capitalize')
|
||||
# check with cased non-letter chars
|
||||
self.checkequal('\u24c5\u24e8\u24e3\u24d7\u24de\u24dd',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue