mirror of
https://github.com/python/cpython.git
synced 2025-12-09 18:48:05 +00:00
bpo-40280: Skip subprocess-based tests on wasm32-emscripten (GH-30615)
This commit is contained in:
parent
e1abffca45
commit
8464fbc42e
42 changed files with 139 additions and 23 deletions
|
|
@ -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'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue