diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2008-02-15 19:52:38 +0000 |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2008-02-15 19:52:38 +0000 |
commit | 42e4124304493e93d490fcf1147617a8adc4da0d (patch) | |
tree | 69c2c571c3eb4c10e5b2c4bf898b770c8be046a1 /Lib/test/test_array.py | |
parent | 9c04257bf91df5739bc071ba07c307a8cce3063b (diff) | |
download | cpython-git-42e4124304493e93d490fcf1147617a8adc4da0d.tar.gz |
Revert 60793 for test_array; on a 64-bit system,
MemoryError was not guaranteed.
Diffstat (limited to 'Lib/test/test_array.py')
-rwxr-xr-x | Lib/test/test_array.py | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/Lib/test/test_array.py b/Lib/test/test_array.py index a665bacc25..597f3b2421 100755 --- a/Lib/test/test_array.py +++ b/Lib/test/test_array.py @@ -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): |