mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
merge 3.4 (#22643)
This commit is contained in:
commit
6925264334
3 changed files with 13 additions and 0 deletions
|
@ -701,6 +701,11 @@ class UnicodeTest(string_tests.CommonTest,
|
|||
self.assertEqual('x'.center(4, '\U0010FFFF'),
|
||||
'\U0010FFFFx\U0010FFFF\U0010FFFF')
|
||||
|
||||
@unittest.skipUnless(sys.maxsize == 2**31 - 1, "requires 32-bit system")
|
||||
def test_case_operation_overflow(self):
|
||||
# Issue #22643
|
||||
self.assertRaises(OverflowError, ("ü"*(2**32//12 + 1)).upper)
|
||||
|
||||
def test_contains(self):
|
||||
# Testing Unicode contains method
|
||||
self.assertIn('a', 'abdb')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue