Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 838b7cc + 411dfd8 commit 3d717d0Copy full SHA for 3d717d0
1 file changed
Lib/test/test_unicode.py
@@ -849,7 +849,15 @@ def test_center(self):
849
@support.cpython_only
850
def test_case_operation_overflow(self):
851
# Issue #22643
852
- self.assertRaises(OverflowError, ("ü"*(2**32//12 + 1)).upper)
+ size = 2**32//12 + 1
853
+ try:
854
+ s = "ü" * size
855
+ except MemoryError:
856
+ self.skipTest('no enough memory (%.0f MiB required)' % (size / 2**20))
857
858
+ self.assertRaises(OverflowError, s.upper)
859
+ finally:
860
+ del s
861
862
def test_contains(self):
863
# Testing Unicode contains method
0 commit comments