diff --git a/python-pytest-cov.changes b/python-pytest-cov.changes index a12b6b9..3fa5ed1 100644 --- a/python-pytest-cov.changes +++ b/python-pytest-cov.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Mon Dec 20 01:21:53 UTC 2021 - Steve Kowalik + +- Add support-coverage-62.patch: + * Support coverage >= 6.2 + ------------------------------------------------------------------- Wed Nov 10 13:05:15 UTC 2021 - Ondřej Súkup diff --git a/python-pytest-cov.spec b/python-pytest-cov.spec index 369b7ae..e942222 100644 --- a/python-pytest-cov.spec +++ b/python-pytest-cov.spec @@ -1,5 +1,5 @@ # -# spec file for package python-pytest +# spec file # # Copyright (c) 2021 SUSE LLC # @@ -33,6 +33,8 @@ Summary: Pytest plugin for coverage reporting License: MIT URL: https://github.com/schlamar/pytest-cov Source: https://files.pythonhosted.org/packages/source/p/pytest-cov/pytest-cov-%{version}.tar.gz +# PATCH-FIX-UPSTREAM gh#pytest-dev/pytest-cov/issues/509 +Patch0: support-coverage-62.patch BuildRequires: %{python_module coverage >= 5.2.1} BuildRequires: %{python_module fields} BuildRequires: %{python_module process-tests} diff --git a/support-coverage-62.patch b/support-coverage-62.patch new file mode 100644 index 0000000..ca8b817 --- /dev/null +++ b/support-coverage-62.patch @@ -0,0 +1,13 @@ +Index: pytest-cov-3.0.0/tests/test_pytest_cov.py +=================================================================== +--- pytest-cov-3.0.0.orig/tests/test_pytest_cov.py ++++ pytest-cov-3.0.0/tests/test_pytest_cov.py +@@ -968,7 +968,7 @@ def test_invalid_coverage_source(testdir + '*10 passed*' + ]) + result.stderr.fnmatch_lines([ +- 'Coverage.py warning: No data was collected.*' ++ '*No data was collected.*' + ]) + result.stdout.fnmatch_lines([ + '*Failed to generate report: No data to report.',