diff options
author | Benjamin Peterson <benjamin@python.org> | 2014-10-15 15:48:41 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2014-10-15 15:48:41 (GMT) |
commit | 1cbb3fe775c210459f53386b8172f5f2965ee33b (patch) | |
tree | 718e76fe1cc9af45ccae267245787fce8fc913ce /Lib | |
parent | fd39a89e0e09de5460626a68e9e443fe0c103c14 (diff) | |
parent | e1bd38c03c16cd27227b3148d2be0ef1ab678448 (diff) | |
download | cpython-1cbb3fe775c210459f53386b8172f5f2965ee33b.zip cpython-1cbb3fe775c210459f53386b8172f5f2965ee33b.tar.gz cpython-1cbb3fe775c210459f53386b8172f5f2965ee33b.tar.bz2 |
merge 3.3 (#22643)
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/test/test_unicode.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Lib/test/test_unicode.py b/Lib/test/test_unicode.py index 9ae31d1..a72a0cc 100644 --- a/Lib/test/test_unicode.py +++ b/Lib/test/test_unicode.py @@ -672,6 +672,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') |