Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-pytest-cov for 
openSUSE:Factory checked in at 2021-02-11 12:46:45
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-pytest-cov (Old)
 and      /work/SRC/openSUSE:Factory/.python-pytest-cov.new.28504 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-pytest-cov"

Thu Feb 11 12:46:45 2021 rev:21 rq:869515 version:2.11.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-pytest-cov/python-pytest-cov.changes      
2021-01-29 14:57:12.641519420 +0100
+++ 
/work/SRC/openSUSE:Factory/.python-pytest-cov.new.28504/python-pytest-cov.changes
   2021-02-11 12:47:47.309523915 +0100
@@ -1,0 +2,6 @@
+Thu Feb  4 09:58:52 UTC 2021 - Ben Greiner <c...@bnavigator.de>
+
+- Add pytest-cov-pr453-coverage54.patch to work with coverage 5.4
+  gh#pytest-dev/pytest-cov#453
+
+-------------------------------------------------------------------

New:
----
  pytest-cov-pr453-coverage54.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-pytest-cov.spec ++++++
--- /var/tmp/diff_new_pack.ZbWLmd/_old  2021-02-11 12:47:47.789524614 +0100
+++ /var/tmp/diff_new_pack.ZbWLmd/_new  2021-02-11 12:47:47.793524620 +0100
@@ -24,6 +24,8 @@
 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#453 work with coverage 5.4
+Patch0:         
https://github.com/pytest-dev/pytest-cov/pull/453.patch#/pytest-cov-pr453-coverage54.patch
 BuildRequires:  %{python_module coverage >= 5.2.1}
 BuildRequires:  %{python_module fields}
 BuildRequires:  %{python_module process-tests}
@@ -48,7 +50,7 @@
 through pytest-cov or through coverage's config file.
 
 %prep
-%setup -q -n pytest-cov-%{version}
+%autosetup -p1 -n pytest-cov-%{version}
 
 %build
 %python_build

++++++ pytest-cov-pr453-coverage54.patch ++++++
>From 92ad6f411167dc05bf54beeb5d9ebc916cc0f6f3 Mon Sep 17 00:00:00 2001
From: chedi <chedi.toue...@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 @@ def test_central_with_path_aliasing(testdir, monkeypatch, 
opts, 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
 
@@ -643,7 +643,7 @@ def test_show_missing_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
 

Reply via email to