remove MAX_MAXCHAR because it's unsafe for computing maximum codepoitn value (see #18183)

This commit is contained in:
Benjamin Peterson 2013-06-10 09:19:46 -07:00
parent 0e547b66dc
commit 7e30373126
3 changed files with 32 additions and 31 deletions

View file

@ -566,6 +566,9 @@ class UnicodeTest(string_tests.CommonTest,
self.assertEqual('\U0008fffe'.lower(), '\U0008fffe')
self.assertEqual('\u2177'.lower(), '\u2177')
# See issue #18183 for this one.
'\U00010000\U00100000'.lower()
def test_casefold(self):
self.assertEqual('hello'.casefold(), 'hello')
self.assertEqual('hELlo'.casefold(), 'hello')