gh-97616: test_list_resize_overflow() uses sys.maxsize (#99057)

This commit is contained in:
Victor Stinner 2022-11-03 15:56:12 +01:00 committed by GitHub
parent 1208037246
commit b8a9f13abb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -103,7 +103,7 @@ class ListTest(list_tests.CommonTest):
del lst[1:]
self.assertEqual(len(lst), 1)
size = ((2 ** (tuple.__itemsize__ * 8) - 1) // 2)
size = sys.maxsize
with self.assertRaises((MemoryError, OverflowError)):
lst * size
with self.assertRaises((MemoryError, OverflowError)):