Commit 42e41243 authored by Martin v. Löwis's avatar Martin v. Löwis

Revert 60793 for test_array; on a 64-bit system,

MemoryError was not guaranteed.
parent 9c04257b
......@@ -975,23 +975,6 @@ tests.append(FloatTest)
class DoubleTest(FPTest):
typecode = 'd'
minitemsize = 8
def test_alloc_overflow(self):
a = array.array('d', [-1]*65536)
try:
a *= 65536
except MemoryError:
pass
else:
self.fail("a *= 2**16 didn't raise MemoryError")
b = array.array('d', [ 2.71828183, 3.14159265, -1])
try:
b * 1431655766
except MemoryError:
pass
else:
self.fail("a * 1431655766 didn't raise MemoryError")
tests.append(DoubleTest)
def test_main(verbose=None):
......
......@@ -13,6 +13,7 @@ Extension Modules
-----------------
- Fix deallocation of array objects when allocation ran out of memory.
Remove array test case that was incorrect on 64-bit systems.
What's New in Python 2.5.2c1?
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment