From 9798c631b2667af381d5f68e88b17883e90a7e7d Mon Sep 17 00:00:00 2001 From: Sorin Sbarnea Date: Sat, 19 Jun 2021 13:08:59 +0100 Subject: [PATCH] Mark known broken tests with xfail Related: #1375 --- tests/test_cli_compile.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/test_cli_compile.py b/tests/test_cli_compile.py index 913cdc752..0d0c6b2b7 100644 --- a/tests/test_cli_compile.py +++ b/tests/test_cli_compile.py @@ -12,6 +12,8 @@ from .constants import MINIMAL_WHEELS_PATH, PACKAGES_PATH +is_pypy = '__pypy__' in sys.builtin_module_names + @pytest.fixture(autouse=True) def _temp_dep_cache(tmpdir, monkeypatch): monkeypatch.setenv("PIP_TOOLS_CACHE_DIR", str(tmpdir / "cache")) @@ -1760,6 +1762,7 @@ def test_triple_equal_pinned_dependency_is_used( @pytest.mark.network @pytest.mark.parametrize(("fname", "content"), METADATA_TEST_CASES) +@pytest.mark.xfail(is_pypy, reason="https://github.com/jazzband/pip-tools/issues/1375") def test_input_formats(fake_dists, runner, make_module, fname, content): """ Test different dependency formats as input file. @@ -1778,6 +1781,7 @@ def test_input_formats(fake_dists, runner, make_module, fname, content): @pytest.mark.network @pytest.mark.parametrize(("fname", "content"), METADATA_TEST_CASES) +@pytest.mark.xfail(is_pypy, reason="https://github.com/jazzband/pip-tools/issues/1375") def test_one_extra(fake_dists, runner, make_module, fname, content): """ Test one `--extra` (dev) passed, other extras (test) must be ignored. @@ -1798,6 +1802,7 @@ def test_one_extra(fake_dists, runner, make_module, fname, content): @pytest.mark.network @pytest.mark.parametrize(("fname", "content"), METADATA_TEST_CASES) +@pytest.mark.xfail(is_pypy, reason="https://github.com/jazzband/pip-tools/issues/1375") def test_multiple_extras(fake_dists, runner, make_module, fname, content): """ Test passing multiple `--extra` params.