Skip to content

Commit

Permalink
Mark known broken tests with xfail
Browse files Browse the repository at this point in the history
Related: #1375
  • Loading branch information
ssbarnea committed Jun 19, 2021
1 parent 54af858 commit 9798c63
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/test_cli_compile.py
Expand Up @@ -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"))
Expand Down Expand Up @@ -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.
Expand All @@ -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.
Expand All @@ -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.
Expand Down

0 comments on commit 9798c63

Please sign in to comment.