diff options
author | Christian Heimes <christian@python.org> | 2022-01-25 07:09:06 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-25 07:09:06 (GMT) |
commit | 8464fbc42ecc9ce504faac499711dcdc6eedef16 (patch) | |
tree | 1992e76c83da4720bc1dbc95901a417e0a4781e3 /Lib/test/test_gzip.py | |
parent | e1abffca45b60729c460e3e2ad50c8c1946cfd4e (diff) | |
download | cpython-8464fbc42ecc9ce504faac499711dcdc6eedef16.zip cpython-8464fbc42ecc9ce504faac499711dcdc6eedef16.tar.gz cpython-8464fbc42ecc9ce504faac499711dcdc6eedef16.tar.bz2 |
bpo-40280: Skip subprocess-based tests on wasm32-emscripten (GH-30615)
Diffstat (limited to 'Lib/test/test_gzip.py')
-rw-r--r-- | Lib/test/test_gzip.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Lib/test/test_gzip.py b/Lib/test/test_gzip.py index aa66d2f..497e66c 100644 --- a/Lib/test/test_gzip.py +++ b/Lib/test/test_gzip.py @@ -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' |