mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
Don't run the test for issue #16335 when -M is not specified.
Increase memory limit in this test.
This commit is contained in:
parent
f4fbf24aad
commit
7ee79a2823
1 changed files with 5 additions and 1 deletions
|
@ -144,8 +144,12 @@ class UnicodeNamesTest(unittest.TestCase):
|
||||||
@unittest.skipUnless(_testcapi.UINT_MAX < sys.maxint,
|
@unittest.skipUnless(_testcapi.UINT_MAX < sys.maxint,
|
||||||
"needs UINT_MAX < sys.maxint")
|
"needs UINT_MAX < sys.maxint")
|
||||||
@test_support.bigmemtest(minsize=_testcapi.UINT_MAX + 1,
|
@test_support.bigmemtest(minsize=_testcapi.UINT_MAX + 1,
|
||||||
memuse=1 + 4 // len(u'\U00010000'))
|
memuse=2 + 4 // len(u'\U00010000'))
|
||||||
def test_issue16335(self, size):
|
def test_issue16335(self, size):
|
||||||
|
func = self.test_issue16335
|
||||||
|
if size < func.minsize:
|
||||||
|
raise unittest.SkipTest("not enough memory: %.1fG minimum needed" %
|
||||||
|
(func.minsize * func.memuse / float(1024**3),))
|
||||||
# very very long bogus character name
|
# very very long bogus character name
|
||||||
x = b'\\N{SPACE' + b'x' * int(_testcapi.UINT_MAX + 1) + b'}'
|
x = b'\\N{SPACE' + b'x' * int(_testcapi.UINT_MAX + 1) + b'}'
|
||||||
self.assertEqual(len(x), len(b'\\N{SPACE}') +
|
self.assertEqual(len(x), len(b'\\N{SPACE}') +
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue