summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNadeem Vawda <nadeem.vawda@gmail.com>2012-02-23 12:23:17 (GMT)
committerNadeem Vawda <nadeem.vawda@gmail.com>2012-02-23 12:23:17 (GMT)
commit197e22c1d700c9ae71f80b59544fbe423d19017e (patch)
treeb087c204a0217d581adbc4624fa48cfcbbc3b716
parentbc8c8175cc2aeebf0b069e6f36e7cfa4f6184154 (diff)
downloadcpython-197e22c1d700c9ae71f80b59544fbe423d19017e.zip
cpython-197e22c1d700c9ae71f80b59544fbe423d19017e.tar.gz
cpython-197e22c1d700c9ae71f80b59544fbe423d19017e.tar.bz2
Simplify zlib bigmem tests.
-rw-r--r--Lib/test/test_zlib.py8
1 files changed, 2 insertions, 6 deletions
diff --git a/Lib/test/test_zlib.py b/Lib/test/test_zlib.py
index 68dc2b1..3c982c6 100644
--- a/Lib/test/test_zlib.py
+++ b/Lib/test/test_zlib.py
@@ -179,10 +179,8 @@ class CompressTestCase(BaseCompressTestCase, unittest.TestCase):
def test_big_decompress_buffer(self, size):
self.check_big_decompress_buffer(size, zlib.decompress)
- @bigmemtest(size=_4G + 100, memuse=1)
+ @bigmemtest(size=_4G + 100, memuse=1, dry_run=False)
def test_length_overflow(self, size):
- if size < _4G + 100:
- self.skipTest("not enough free memory, need at least 4 GB")
data = b'x' * size
try:
self.assertRaises(OverflowError, zlib.compress, data, 1)
@@ -536,10 +534,8 @@ class CompressObjectTestCase(BaseCompressTestCase, unittest.TestCase):
decompress = lambda s: d.decompress(s) + d.flush()
self.check_big_decompress_buffer(size, decompress)
- @bigmemtest(size=_4G + 100, memuse=1)
+ @bigmemtest(size=_4G + 100, memuse=1, dry_run=False)
def test_length_overflow(self, size):
- if size < _4G + 100:
- self.skipTest("not enough free memory, need at least 4 GB")
data = b'x' * size
c = zlib.compressobj(1)
d = zlib.decompressobj()