diff --git a/0001-fix-for-failing-tests-with-coverage-5.4.patch b/0001-fix-for-failing-tests-with-coverage-5.4.patch new file mode 100644 index 0000000..239ba15 --- /dev/null +++ b/0001-fix-for-failing-tests-with-coverage-5.4.patch @@ -0,0 +1,43 @@ +From 92ad6f411167dc05bf54beeb5d9ebc916cc0f6f3 Mon Sep 17 00:00:00 2001 +From: chedi +Date: Fri, 29 Jan 2021 18:48:58 +0100 +Subject: [PATCH] fix for failing tests with coverage 5.4 + +--- + tests/test_pytest_cov.py | 6 +++--- + 1 file changed, 3 insertions(+), 3 deletions(-) + +diff --git a/tests/test_pytest_cov.py b/tests/test_pytest_cov.py +index 3c73050..ff22fef 100644 +--- a/tests/test_pytest_cov.py ++++ b/tests/test_pytest_cov.py +@@ -500,7 +500,7 @@ def test_central_coveragerc(testdir, prop): + ]) + + # single-module coverage report +- assert all(not line.startswith('TOTAL ') for line in result.stdout.lines[-4:]) ++ assert all(not line.startswith('TOTAL ') for line in result.stdout.lines[-3:]) + + assert result.ret == 0 + +@@ -538,7 +538,7 @@ parallel = true + ]) + + # single-module coverage report +- assert all(not line.startswith('TOTAL ') for line in result.stdout.lines[-4:]) ++ assert all(not line.startswith('TOTAL ') for line in result.stdout.lines[-3:]) + + assert result.ret == 0 + +@@ -643,7 +643,7 @@ show_missing = true + ]) + + # single-module coverage report +- assert all(not line.startswith('TOTAL ') for line in result.stdout.lines[-4:]) ++ assert all(not line.startswith('TOTAL ') for line in result.stdout.lines[-3:]) + + assert result.ret == 0 + +-- +2.29.2 + diff --git a/python-pytest-cov.spec b/python-pytest-cov.spec index bc47b74..aa14e77 100644 --- a/python-pytest-cov.spec +++ b/python-pytest-cov.spec @@ -7,16 +7,17 @@ %bcond_without python2 %endif -Name: python-%{srcname} -Version: 2.11.1 -Release: 1%{?dist} -Summary: Pytest plugin for coverage reporting +Name: python-%{srcname} +Version: 2.11.1 +Release: 2%{?dist} +URL: https://pypi.python.org/pypi/%{srcname} +License: MIT +Summary: Pytest plugin for coverage reporting -License: MIT -URL: https://pypi.python.org/pypi/%{srcname} -Source0: https://github.com/pytest-dev/%{srcname}/archive/v%{version}/%{srcname}-%{version}.tar.gz +Source0: https://github.com/pytest-dev/%{srcname}/archive/v%{version}/%{srcname}-%{version}.tar.gz +Patch0: 0001-fix-for-failing-tests-with-coverage-5.4.patch -BuildArch: noarch +BuildArch: noarch %description Py.test plugin for coverage reporting with support for both centralised and @@ -63,6 +64,9 @@ py.test-%{python3_version} -vv \ %changelog +* Fri Jan 29 2021 Chedi Toueiti - 2.11.1-2 +- Fix for failing tests with coverage 5.4 (#1922301) + * Wed Jan 20 2021 Chedi Toueiti - 2.11.1-1 - Update to 2.11.1 (#1917248)