Blame SOURCES/0001-fix-for-failing-tests-with-coverage-5.4.patch

rdobuilder aa0fa8
From 92ad6f411167dc05bf54beeb5d9ebc916cc0f6f3 Mon Sep 17 00:00:00 2001
rdobuilder aa0fa8
From: chedi <chedi.toueiti@gmail.com>
rdobuilder aa0fa8
Date: Fri, 29 Jan 2021 18:48:58 +0100
rdobuilder aa0fa8
Subject: [PATCH] fix for failing tests with coverage 5.4
rdobuilder aa0fa8
rdobuilder aa0fa8
---
rdobuilder aa0fa8
 tests/test_pytest_cov.py | 6 +++---
rdobuilder aa0fa8
 1 file changed, 3 insertions(+), 3 deletions(-)
rdobuilder aa0fa8
rdobuilder aa0fa8
diff --git a/tests/test_pytest_cov.py b/tests/test_pytest_cov.py
rdobuilder aa0fa8
index 3c73050..ff22fef 100644
rdobuilder aa0fa8
--- a/tests/test_pytest_cov.py
rdobuilder aa0fa8
+++ b/tests/test_pytest_cov.py
rdobuilder aa0fa8
@@ -500,7 +500,7 @@ def test_central_coveragerc(testdir, prop):
rdobuilder aa0fa8
     ])
rdobuilder aa0fa8
 
rdobuilder aa0fa8
     # single-module coverage report
rdobuilder aa0fa8
-    assert all(not line.startswith('TOTAL ') for line in result.stdout.lines[-4:])
rdobuilder aa0fa8
+    assert all(not line.startswith('TOTAL ') for line in result.stdout.lines[-3:])
rdobuilder aa0fa8
 
rdobuilder aa0fa8
     assert result.ret == 0
rdobuilder aa0fa8
 
rdobuilder aa0fa8
@@ -538,7 +538,7 @@ parallel = true
rdobuilder aa0fa8
     ])
rdobuilder aa0fa8
 
rdobuilder aa0fa8
     # single-module coverage report
rdobuilder aa0fa8
-    assert all(not line.startswith('TOTAL ') for line in result.stdout.lines[-4:])
rdobuilder aa0fa8
+    assert all(not line.startswith('TOTAL ') for line in result.stdout.lines[-3:])
rdobuilder aa0fa8
 
rdobuilder aa0fa8
     assert result.ret == 0
rdobuilder aa0fa8
 
rdobuilder aa0fa8
@@ -643,7 +643,7 @@ show_missing = true
rdobuilder aa0fa8
     ])
rdobuilder aa0fa8
 
rdobuilder aa0fa8
     # single-module coverage report
rdobuilder aa0fa8
-    assert all(not line.startswith('TOTAL ') for line in result.stdout.lines[-4:])
rdobuilder aa0fa8
+    assert all(not line.startswith('TOTAL ') for line in result.stdout.lines[-3:])
rdobuilder aa0fa8
 
rdobuilder aa0fa8
     assert result.ret == 0
rdobuilder aa0fa8
 
rdobuilder aa0fa8
-- 
rdobuilder aa0fa8
2.29.2
rdobuilder aa0fa8