Skip to content

Commit

Permalink
test: Skip integration tests on broken PyPy versions
Browse files Browse the repository at this point in the history
Signed-off-by: Michał Górny <[email protected]>
  • Loading branch information
mgorny committed Jul 16, 2024
1 parent 99f0b72 commit f9752e9
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,6 @@ exclude = [
"test/__pycache__",
"test/sub-path/__pycache__",
]

[tool.pytest.ini_options]
xfail_strict = true
6 changes: 6 additions & 0 deletions test/test_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -333,6 +333,9 @@ def pushd(path):
}


@pytest.mark.xfail(getattr(sys, "pypy_version_info", (0, 0, 0))[:3]
== (7, 3, 16) and os.name == "nt",
reason="PyPy 7.3.16 is broken on Windows")
@pytest.mark.parametrize("buildsys", INTEGRATION_TESTS)
def test_integration(tmp_path, capfd, buildsys, verify_zipfile_cleanup,
distutils_cache_cleanup):
Expand Down Expand Up @@ -364,6 +367,9 @@ def test_integration(tmp_path, capfd, buildsys, verify_zipfile_cleanup,
== {x.compress_type for x in zipf.infolist()})


@pytest.mark.xfail(getattr(sys, "pypy_version_info", (0, 0, 0))[:3]
== (7, 3, 16) and os.name == "nt",
reason="PyPy 7.3.16 is broken on Windows")
@pytest.mark.parametrize("buildsys", INTEGRATION_TESTS)
def test_integration_install(tmp_path, buildsys, verify_zipfile_cleanup,
distutils_cache_cleanup):
Expand Down

0 comments on commit f9752e9

Please sign in to comment.