diff --git a/0001_disabling_boxed_xdist_test.patch b/0001_disabling_boxed_xdist_test.patch new file mode 100644 index 0000000..e8903d3 --- /dev/null +++ b/0001_disabling_boxed_xdist_test.patch @@ -0,0 +1,14 @@ +--- a/tests/test_pytest_cov.py 2022-11-11 21:00:59.063033789 +0100 ++++ b/tests/test_pytest_cov.py 2022-11-11 21:22:22.097947660 +0100 +@@ -1554,8 +1554,9 @@ + ''' + + SCRIPT_SIMPLE_RESULT = '4 * 100%' +- +- ++ ++@pytest.mark.skipif('tuple(map(int, xdist.__version__.split("."))) >= (2, 5, 0)', ++ reason="--boxed option was removed in version 2.5.0") + @pytest.mark.skipif('sys.platform == "win32"') + def test_dist_boxed(testdir): + script = testdir.makepyfile(SCRIPT_SIMPLE) diff --git a/python-pytest-cov.spec b/python-pytest-cov.spec index 003942e..d1928d4 100644 --- a/python-pytest-cov.spec +++ b/python-pytest-cov.spec @@ -30,6 +30,7 @@ Summary: Coverage plugin for pytest License: MIT URL: %{forgeurl} Source: %{forgesource} +Patch: 0001_disabling_boxed_xdist_test.patch BuildArch: noarch BuildRequires: python3-devel BuildRequires: pyproject-rpm-macros