Issue #18004: test_overflow in test_list by mistake consumed 40 GiB of memory
on 64-bit systems.
This commit is contained in:
parent
501da1da03
commit
a33c8436cd
|
@ -53,7 +53,7 @@ class ListTest(list_tests.CommonTest):
|
||||||
|
|
||||||
def test_overflow(self):
|
def test_overflow(self):
|
||||||
lst = [4, 5, 6, 7]
|
lst = [4, 5, 6, 7]
|
||||||
n = int((sys.maxint*2+2) // len(lst))
|
n = int((sys.maxsize*2+2) // len(lst))
|
||||||
def mul(a, b): return a * b
|
def mul(a, b): return a * b
|
||||||
def imul(a, b): a *= b
|
def imul(a, b): a *= b
|
||||||
self.assertRaises((MemoryError, OverflowError), mul, lst, n)
|
self.assertRaises((MemoryError, OverflowError), mul, lst, n)
|
||||||
|
|
|
@ -74,6 +74,9 @@ Library
|
||||||
Tests
|
Tests
|
||||||
-----
|
-----
|
||||||
|
|
||||||
|
- Issue #18004: test_overflow in test_list by mistake consumed 40 GiB of memory
|
||||||
|
on 64-bit systems.
|
||||||
|
|
||||||
- Issue #21976: Fix test_ssl to accept LibreSSL version strings. Thanks
|
- Issue #21976: Fix test_ssl to accept LibreSSL version strings. Thanks
|
||||||
to William Orr.
|
to William Orr.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue