diff --git a/python-pytest-cov.changes b/python-pytest-cov.changes index 0754712..b5997fa 100644 --- a/python-pytest-cov.changes +++ b/python-pytest-cov.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Mon Nov 28 09:31:24 UTC 2022 - Daniel Garcia + +- Disable failing tests (test_contexts) that fails because of the new version + of python-coverage, gh#pytest-dev/pytest-cov#570 + ------------------------------------------------------------------- Fri Nov 25 11:55:18 UTC 2022 - Daniel Garcia diff --git a/python-pytest-cov.spec b/python-pytest-cov.spec index 31b1175..c0071b0 100644 --- a/python-pytest-cov.spec +++ b/python-pytest-cov.spec @@ -71,11 +71,15 @@ through pytest-cov or through coverage's config file. %check %if %{with test} -# test_dist_missing_data - needs internet access -# test_central_subprocess_change_cwd_with_pythonpath - needs pytest cov in venv which is not doable in OBS build export PYTHONDONTWRITEBYTECODE=1 echo "import site;site.addsitedir(\"$(pwd)/src\")" > tests/sitecustomize.py -%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib}:$PWD/tests py.test-%{$python_bin_suffix} -v -k 'not (test_dist_missing_data or test_central_subprocess_change_cwd_with_pythonpath)' +# test_dist_missing_data - needs internet access +# test_central_subprocess_change_cwd_with_pythonpath - needs pytest cov in venv which is not doable in OBS build +donttest="test_dist_missing_data or test_central_subprocess_change_cwd_with_pythonpath" +# Tests broken with the latest version of python-coverage (6.5.0) +# gh#pytest-dev/pytest-cov#570 +donttest+=" or test_contexts" +%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib}:$PWD/tests py.test-%{$python_bin_suffix} -v -k "not (${donttest})" %endif %if ! %{with test}