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-01-19 15:59:13 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 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" Tue Jan 19 15:59:13 2021 rev:19 rq:863330 version:2.10.1 Changes: -------- --- /work/SRC/openSUSE:Factory/python-pytest-cov/python-pytest-cov.changes 2020-08-25 12:40:45.357436958 +0200 +++ /work/SRC/openSUSE:Factory/.python-pytest-cov.new.28504/python-pytest-cov.changes 2021-01-19 15:59:38.399148305 +0100 @@ -1,0 +2,5 @@ +Fri Jan 15 11:59:34 UTC 2021 - Mark??ta Machov?? <mmach...@suse.com> + +- Add pytest62.patch to make testsuite compatible with new pytest + +------------------------------------------------------------------- New: ---- pytest62.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-pytest-cov.spec ++++++ --- /var/tmp/diff_new_pack.sIWJmF/_old 2021-01-19 15:59:39.231149563 +0100 +++ /var/tmp/diff_new_pack.sIWJmF/_new 2021-01-19 15:59:39.235149569 +0100 @@ -1,7 +1,7 @@ # # spec file for package python-pytest-cov # -# Copyright (c) 2020 SUSE LLC +# Copyright (c) 2021 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -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 https://github.com/pytest-dev/pytest-cov/commit/25eed212085ce9a2d5383a6a4a2b360d0d514f89 Turns out there were some internal changes in the pytester plugin. +Patch0: pytest62.patch BuildRequires: %{python_module coverage >= 4.4} BuildRequires: %{python_module fields} BuildRequires: %{python_module process-tests} @@ -49,6 +51,7 @@ %prep %setup -q -n pytest-cov-%{version} +%patch0 -p1 %build %python_build ++++++ pytest62.patch ++++++ >From 25eed212085ce9a2d5383a6a4a2b360d0d514f89 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ionel=20Cristian=20M=C4=83rie=C8=99?= <cont...@ionelmc.ro> Date: Mon, 11 Jan 2021 15:49:18 +0200 Subject: [PATCH] Turns out there were some internal changes in the pytester plugin. --- tests/test_pytest_cov.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/tests/test_pytest_cov.py b/tests/test_pytest_cov.py index f0fd6ca..c6511aa 100644 --- a/tests/test_pytest_cov.py +++ b/tests/test_pytest_cov.py @@ -1538,8 +1538,14 @@ def test_cover_looponfail(testdir, monkeypatch): testdir.makeconftest(CONFTEST) script = testdir.makepyfile(BASIC_TEST) - monkeypatch.setattr(testdir, 'run', - lambda *args, **kwargs: _TestProcess(*map(str, args))) + def mock_run(*args, **kwargs): + return _TestProcess(*map(str, args)) + + monkeypatch.setattr(testdir, 'run', mock_run) + assert testdir.run is mock_run + if hasattr(testdir, '_pytester'): + monkeypatch.setattr(testdir._pytester, 'run', mock_run) + assert testdir._pytester.run is mock_run with testdir.runpytest('-v', '--cov=%s' % script.dirpath(), '--looponfail',