diff --git a/pytest-cov-2.10.1.tar.gz b/pytest-cov-2.10.1.tar.gz deleted file mode 100644 index e13c974..0000000 --- a/pytest-cov-2.10.1.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:47bd0ce14056fdd79f93e1713f88fad7bdcc583dcd7783da86ef2f085a0bb88e -size 56822 diff --git a/pytest-cov-2.11.1.tar.gz b/pytest-cov-2.11.1.tar.gz new file mode 100644 index 0000000..b3375ba --- /dev/null +++ b/pytest-cov-2.11.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:359952d9d39b9f822d9d29324483e7ba04a3a17dd7d05aa6beb7ea01e359e5f7 +size 59143 diff --git a/pytest62.patch b/pytest62.patch deleted file mode 100644 index 11b31f0..0000000 --- a/pytest62.patch +++ /dev/null @@ -1,31 +0,0 @@ -From 25eed212085ce9a2d5383a6a4a2b360d0d514f89 Mon Sep 17 00:00:00 2001 -From: =?UTF-8?q?Ionel=20Cristian=20M=C4=83rie=C8=99?= -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', diff --git a/python-pytest-cov.changes b/python-pytest-cov.changes index 52bcc7e..f0a736e 100644 --- a/python-pytest-cov.changes +++ b/python-pytest-cov.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Wed Jan 27 13:51:26 UTC 2021 - Markéta Machová + +- Update to 2.11.1 + * Fixed the missing coverage context when using subprocesses. + * Bumped minimum coverage requirement to 5.2.1. This prevents reporting issues. +- Drop merged pytest62.patch + ------------------------------------------------------------------- Fri Jan 15 11:59:34 UTC 2021 - Markéta Machová diff --git a/python-pytest-cov.spec b/python-pytest-cov.spec index 97df398..1f8cbfa 100644 --- a/python-pytest-cov.spec +++ b/python-pytest-cov.spec @@ -18,25 +18,23 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-pytest-cov -Version: 2.10.1 +Version: 2.11.1 Release: 0 Summary: Pytest plugin for coverage reporting 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 coverage >= 5.2.1} BuildRequires: %{python_module fields} BuildRequires: %{python_module process-tests} BuildRequires: %{python_module pytest >= 4.6.0} -BuildRequires: %{python_module pytest-xdist >= 1.32.0} +BuildRequires: %{python_module pytest-xdist} BuildRequires: %{python_module setuptools} BuildRequires: %{python_module six} BuildRequires: %{python_module virtualenv} BuildRequires: fdupes BuildRequires: python-rpm-macros -Requires: python-coverage >= 4.4 +Requires: python-coverage >= 5.2.1 Requires: python-pytest >= 4.6.0 BuildArch: noarch %python_subpackages @@ -51,7 +49,6 @@ through pytest-cov or through coverage's config file. %prep %setup -q -n pytest-cov-%{version} -%patch0 -p1 %build %python_build