mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-05-22 21:32:31 +00:00
Begin incorporating Python unit tests into build
We now build a separate APE binary for each test so they can run in parallel. We've got 148 tests running fast and stable so far.
This commit is contained in:
parent
51904e2687
commit
b5f743cdc3
121 changed files with 4995 additions and 4767 deletions
5
third_party/python/Lib/test/test_zlib.py
vendored
5
third_party/python/Lib/test/test_zlib.py
vendored
|
@ -4,10 +4,9 @@ import binascii
|
|||
import pickle
|
||||
import random
|
||||
import sys
|
||||
import zlib
|
||||
from test.support import bigmemtest, _1G, _4G
|
||||
|
||||
zlib = support.import_module('zlib')
|
||||
|
||||
requires_Compress_copy = unittest.skipUnless(
|
||||
hasattr(zlib.compressobj(), "copy"),
|
||||
'requires Compress.copy()')
|
||||
|
@ -710,6 +709,8 @@ class CompressObjectTestCase(BaseCompressTestCase, unittest.TestCase):
|
|||
|
||||
@bigmemtest(size=_1G + 1024 * 1024, memuse=3)
|
||||
def test_big_compress_buffer(self, size):
|
||||
import tracemalloc
|
||||
tracemalloc.start(20)
|
||||
c = zlib.compressobj(1)
|
||||
compress = lambda s: c.compress(s) + c.flush()
|
||||
self.check_big_compress_buffer(size, compress)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue