summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBas van Beek <b.f.van.beek@vu.nl>2020-10-01 10:56:53 +0200
committerBas van Beek <b.f.van.beek@vu.nl>2020-10-01 10:56:53 +0200
commit5d8d296e9b7694c1254792dac564be14d47a46a9 (patch)
tree74429d41c5ef508e80e73ce65d049a8e9160e666
parentd49ecd53dbbaa9abdbeae6b5ac0486a2df376566 (diff)
downloadnumpy-5d8d296e9b7694c1254792dac564be14d47a46a9.tar.gz
TST: Mark the typing tests as slow
-rw-r--r--numpy/typing/tests/test_typing.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/numpy/typing/tests/test_typing.py b/numpy/typing/tests/test_typing.py
index beb53ddec..cba1dc1be 100644
--- a/numpy/typing/tests/test_typing.py
+++ b/numpy/typing/tests/test_typing.py
@@ -36,6 +36,7 @@ def get_test_cases(directory):
)
+@pytest.mark.slow
@pytest.mark.skipif(NO_MYPY, reason="Mypy is not installed")
@pytest.mark.parametrize("path", get_test_cases(PASS_DIR))
def test_success(path):
@@ -50,6 +51,7 @@ def test_success(path):
assert re.match(r"Success: no issues found in \d+ source files?", stdout.strip())
+@pytest.mark.slow
@pytest.mark.skipif(NO_MYPY, reason="Mypy is not installed")
@pytest.mark.parametrize("path", get_test_cases(FAIL_DIR))
def test_fail(path):
@@ -99,6 +101,7 @@ def test_fail(path):
pytest.fail(f"Error {repr(errors[lineno])} not found")
+@pytest.mark.slow
@pytest.mark.skipif(NO_MYPY, reason="Mypy is not installed")
@pytest.mark.parametrize("path", get_test_cases(REVEAL_DIR))
def test_reveal(path):
@@ -130,6 +133,7 @@ def test_reveal(path):
assert marker in error_line
+@pytest.mark.slow
@pytest.mark.skipif(NO_MYPY, reason="Mypy is not installed")
@pytest.mark.parametrize("path", get_test_cases(PASS_DIR))
def test_code_runs(path):