fix for the failing tests with coverage 5.4

epel9
chedi 4 years ago
parent 1b18cdc640
commit 546274b899

@ -0,0 +1,43 @@
From 92ad6f411167dc05bf54beeb5d9ebc916cc0f6f3 Mon Sep 17 00:00:00 2001
From: chedi <chedi.toueiti@gmail.com>
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

@ -9,12 +9,13 @@
Name: python-%{srcname}
Version: 2.11.1
Release: 1%{?dist}
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
Patch0: 0001-fix-for-failing-tests-with-coverage-5.4.patch
BuildArch: noarch
@ -63,6 +64,9 @@ py.test-%{python3_version} -vv \
%changelog
* Fri Jan 29 2021 Chedi Toueiti <chedi.toueiti@gmail.com> - 2.11.1-2
- Fix for failing tests with coverage 5.4 (#1922301)
* Wed Jan 20 2021 Chedi Toueiti <chedi.toueiti@gmail.com> - 2.11.1-1
- Update to 2.11.1 (#1917248)

Loading…
Cancel
Save