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.
1 parent 1208037 commit b8a9f13Copy full SHA for b8a9f13
1 file changed
Lib/test/test_list.py
@@ -103,7 +103,7 @@ def test_list_resize_overflow(self):
103
del lst[1:]
104
self.assertEqual(len(lst), 1)
105
106
- size = ((2 ** (tuple.__itemsize__ * 8) - 1) // 2)
+ size = sys.maxsize
107
with self.assertRaises((MemoryError, OverflowError)):
108
lst * size
109
0 commit comments