diff options
author | Charles Harris <charlesr.harris@gmail.com> | 2020-10-01 05:55:17 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-01 05:55:17 -0600 |
commit | 33963bac8b276f2f2a6aa25e80caddbf23d9ff57 (patch) | |
tree | 74429d41c5ef508e80e73ce65d049a8e9160e666 | |
parent | d49ecd53dbbaa9abdbeae6b5ac0486a2df376566 (diff) | |
parent | 5d8d296e9b7694c1254792dac564be14d47a46a9 (diff) | |
download | numpy-33963bac8b276f2f2a6aa25e80caddbf23d9ff57.tar.gz |
Merge pull request #17411 from BvB93/mypy-error
TST: Mark the typing tests as slow
-rw-r--r-- | numpy/typing/tests/test_typing.py | 4 |
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): |