From 85ab890a20784811736ac7d4d68f1ce9ab4ce036 Mon Sep 17 00:00:00 2001 From: Rohit Goswami Date: Thu, 1 Feb 2024 20:08:14 +0000 Subject: [PATCH] CI,TST: Skip flaky pypy tests --- test/test_publish.py | 2 ++ test/test_repo.py | 2 ++ test/test_run.py | 1 + 3 files changed, 5 insertions(+) diff --git a/test/test_publish.py b/test/test_publish.py index 82be7f61d..a4014d3f7 100644 --- a/test/test_publish.py +++ b/test/test_publish.py @@ -20,6 +20,8 @@ from . import tools +pytestmark = pytest.mark.skipif(tools.HAS_PYPY, reason="Flaky on pypy") + BENCHMARK_DIR = abspath(join(dirname(__file__), 'benchmark')) diff --git a/test/test_repo.py b/test/test_repo.py index 5f89a0b3c..a3f380b2e 100644 --- a/test/test_repo.py +++ b/test/test_repo.py @@ -16,6 +16,8 @@ from . import tools +pytestmark = pytest.mark.skipif(tools.HAS_PYPY, reason="Randomly times out on pypy") + def _test_generic_repo(conf, tmpdir, hash_range, main, branch, is_remote=False): workcopy_dir = tempfile.mkdtemp(dir=tmpdir, prefix="workcopy") diff --git a/test/test_run.py b/test/test_run.py index 77c0b8e2f..f603f3b77 100644 --- a/test/test_run.py +++ b/test/test_run.py @@ -310,6 +310,7 @@ def check_env_matrix(env_build, env_nobuild): check_env_matrix({'SOME_TEST_VAR': ['1', '2']}, {}) +@pytest.mark.skipif(tools.HAS_PYPY, reason="Times out randomly on pypy") def test_parallel(basic_conf_2, dummy_packages): tmpdir, local, conf, machine_file = basic_conf_2