diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2011-10-04 08:28:37 (GMT) |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2011-10-04 08:28:37 (GMT) |
commit | 1a3ff48c55fcb4dd8151750976242d83a84a09b0 (patch) | |
tree | 74f4f275edb2206b64eb2aeaf0be9406814c1b71 /Lib/test/test_bz2.py | |
parent | 5a688dbf97f1537d3f2309bfe6be93dab2f10ce0 (diff) | |
parent | 94190bb6e7f3b1c7942b562fe0fad3e62b5386b9 (diff) | |
download | cpython-1a3ff48c55fcb4dd8151750976242d83a84a09b0.zip cpython-1a3ff48c55fcb4dd8151750976242d83a84a09b0.tar.gz cpython-1a3ff48c55fcb4dd8151750976242d83a84a09b0.tar.bz2 |
Start fixing test_bigmem:
- bigmemtest is replaced by precisionbigmemtest
- add a poor man's watchdog thread to print memory consumption
Diffstat (limited to 'Lib/test/test_bz2.py')
-rw-r--r-- | Lib/test/test_bz2.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/test/test_bz2.py b/Lib/test/test_bz2.py index d003238..c324fb1 100644 --- a/Lib/test/test_bz2.py +++ b/Lib/test/test_bz2.py @@ -1,6 +1,6 @@ #!/usr/bin/env python3 from test import support -from test.support import TESTFN, precisionbigmemtest, _4G +from test.support import TESTFN, bigmemtest, _4G import unittest from io import BytesIO @@ -497,7 +497,7 @@ class BZ2CompressorTest(BaseTest): data += bz2c.flush() self.assertEqual(self.decompress(data), self.TEXT) - @precisionbigmemtest(size=_4G + 100, memuse=2) + @bigmemtest(size=_4G + 100, memuse=2) def testCompress4G(self, size): # "Test BZ2Compressor.compress()/flush() with >4GiB input" bz2c = BZ2Compressor() @@ -548,7 +548,7 @@ class BZ2DecompressorTest(BaseTest): text = bz2d.decompress(self.DATA) self.assertRaises(EOFError, bz2d.decompress, b"anything") - @precisionbigmemtest(size=_4G + 100, memuse=3) + @bigmemtest(size=_4G + 100, memuse=3) def testDecompress4G(self, size): # "Test BZ2Decompressor.decompress() with >4GiB input" blocksize = 10 * 1024 * 1024 |