bpo-40280: Skip subprocess-based tests on wasm32-emscripten (GH-30615)

This commit is contained in:
Christian Heimes 2022-01-25 09:09:06 +02:00 committed by GitHub
parent e1abffca45
commit 8464fbc42e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
42 changed files with 139 additions and 23 deletions

View file

@ -12,7 +12,7 @@ import unittest
from subprocess import PIPE, Popen
from test.support import import_helper
from test.support import os_helper
from test.support import _4G, bigmemtest
from test.support import _4G, bigmemtest, requires_subprocess
from test.support.script_helper import assert_python_ok, assert_python_failure
gzip = import_helper.import_module('gzip')
@ -760,6 +760,7 @@ def create_and_remove_directory(directory):
class TestCommandLine(unittest.TestCase):
data = b'This is a simple test with gzip'
@requires_subprocess()
def test_decompress_stdin_stdout(self):
with io.BytesIO() as bytes_io:
with gzip.GzipFile(fileobj=bytes_io, mode='wb') as gzip_file:
@ -795,6 +796,7 @@ class TestCommandLine(unittest.TestCase):
self.assertEqual(rc, 1)
self.assertEqual(out, b'')
@requires_subprocess()
@create_and_remove_directory(TEMPDIR)
def test_compress_stdin_outfile(self):
args = sys.executable, '-m', 'gzip'