mirror of
https://github.com/python/cpython.git
synced 2025-09-27 18:59:43 +00:00
gh-97616: test_list_resize_overflow() uses sys.maxsize (#99057)
This commit is contained in:
parent
1208037246
commit
b8a9f13abb
1 changed files with 1 additions and 1 deletions
|
@ -103,7 +103,7 @@ class ListTest(list_tests.CommonTest):
|
||||||
del lst[1:]
|
del lst[1:]
|
||||||
self.assertEqual(len(lst), 1)
|
self.assertEqual(len(lst), 1)
|
||||||
|
|
||||||
size = ((2 ** (tuple.__itemsize__ * 8) - 1) // 2)
|
size = sys.maxsize
|
||||||
with self.assertRaises((MemoryError, OverflowError)):
|
with self.assertRaises((MemoryError, OverflowError)):
|
||||||
lst * size
|
lst * size
|
||||||
with self.assertRaises((MemoryError, OverflowError)):
|
with self.assertRaises((MemoryError, OverflowError)):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue