bpo-36549: str.capitalize now titlecases the first character instead of uppercasing it (GH-12804)

This commit is contained in:
Kingsley M 2019-04-12 16:35:39 +01:00 committed by Steve Dower
parent f13c5c8b94
commit b015fc86f7
5 changed files with 10 additions and 5 deletions

View file

@ -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',