diff options
| author | Hood Chatham <roberthoodchatham@gmail.com> | 2022-11-10 11:54:21 -0800 |
|---|---|---|
| committer | Hood Chatham <roberthoodchatham@gmail.com> | 2022-11-11 02:52:06 -0800 |
| commit | 08c6e9c142e619ac5175b6a13342ba2f2c571ddd (patch) | |
| tree | 8be92e0f2d27dd9c888fde95c2dfe46a305ba892 /numpy/distutils/tests | |
| parent | 6aacc5167983d7c6f8689d7039294f2fc0d5f5fb (diff) | |
| download | numpy-08c6e9c142e619ac5175b6a13342ba2f2c571ddd.tar.gz | |
TST: Skip tests that are not currently supported in wasm
Diffstat (limited to 'numpy/distutils/tests')
| -rw-r--r-- | numpy/distutils/tests/test_build_ext.py | 2 | ||||
| -rw-r--r-- | numpy/distutils/tests/test_exec_command.py | 5 | ||||
| -rw-r--r-- | numpy/distutils/tests/test_shell_utils.py | 3 |
3 files changed, 9 insertions, 1 deletions
diff --git a/numpy/distutils/tests/test_build_ext.py b/numpy/distutils/tests/test_build_ext.py index c007159f5..372100fc0 100644 --- a/numpy/distutils/tests/test_build_ext.py +++ b/numpy/distutils/tests/test_build_ext.py @@ -5,7 +5,9 @@ import subprocess import sys from textwrap import indent, dedent import pytest +from numpy.testing import IS_WASM +@pytest.mark.skipif(IS_WASM, reason="cannot start subprocess in wasm") @pytest.mark.slow def test_multi_fortran_libs_link(tmp_path): ''' diff --git a/numpy/distutils/tests/test_exec_command.py b/numpy/distutils/tests/test_exec_command.py index 157bd8427..d1a20056a 100644 --- a/numpy/distutils/tests/test_exec_command.py +++ b/numpy/distutils/tests/test_exec_command.py @@ -1,10 +1,12 @@ import os +import pytest import sys from tempfile import TemporaryFile from numpy.distutils import exec_command from numpy.distutils.exec_command import get_pythonexe -from numpy.testing import tempdir, assert_, assert_warns +from numpy.testing import tempdir, assert_, assert_warns, IS_WASM + # In python 3 stdout, stderr are text (unicode compliant) devices, so to # emulate them import StringIO from the io module. @@ -93,6 +95,7 @@ def test_exec_command_stderr(): exec_command.exec_command("cd '.'") +@pytest.mark.skipif(IS_WASM, reason="Cannot start subprocess") class TestExecCommand: def setup_method(self): self.pyexe = get_pythonexe() diff --git a/numpy/distutils/tests/test_shell_utils.py b/numpy/distutils/tests/test_shell_utils.py index 32bd283e5..696d38ddd 100644 --- a/numpy/distutils/tests/test_shell_utils.py +++ b/numpy/distutils/tests/test_shell_utils.py @@ -4,6 +4,7 @@ import json import sys from numpy.distutils import _shell_utils +from numpy.testing import IS_WASM argv_cases = [ [r'exe'], @@ -49,6 +50,7 @@ def runner(Parser): raise NotImplementedError +@pytest.mark.skipif(IS_WASM, reason="Cannot start subprocess") @pytest.mark.parametrize('argv', argv_cases) def test_join_matches_subprocess(Parser, runner, argv): """ @@ -64,6 +66,7 @@ def test_join_matches_subprocess(Parser, runner, argv): assert json.loads(json_out) == argv +@pytest.mark.skipif(IS_WASM, reason="Cannot start subprocess") @pytest.mark.parametrize('argv', argv_cases) def test_roundtrip(Parser, argv): """ |
