- Add support-coverage-62.patch:
* Support coverage >= 6.2 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest-cov?expand=0&rev=31
This commit is contained in:
parent
2fd546064c
commit
5b9207a2df
@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Dec 20 01:21:53 UTC 2021 - Steve Kowalik <steven.kowalik@suse.com>
|
||||
|
||||
- Add support-coverage-62.patch:
|
||||
* Support coverage >= 6.2
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Nov 10 13:05:15 UTC 2021 - Ondřej Súkup <mimi.vx@gmail.com>
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
#
|
||||
# spec file for package python-pytest
|
||||
# spec file
|
||||
#
|
||||
# Copyright (c) 2021 SUSE LLC
|
||||
#
|
||||
@ -33,6 +33,8 @@ 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 gh#pytest-dev/pytest-cov/issues/509
|
||||
Patch0: support-coverage-62.patch
|
||||
BuildRequires: %{python_module coverage >= 5.2.1}
|
||||
BuildRequires: %{python_module fields}
|
||||
BuildRequires: %{python_module process-tests}
|
||||
|
13
support-coverage-62.patch
Normal file
13
support-coverage-62.patch
Normal file
@ -0,0 +1,13 @@
|
||||
Index: pytest-cov-3.0.0/tests/test_pytest_cov.py
|
||||
===================================================================
|
||||
--- pytest-cov-3.0.0.orig/tests/test_pytest_cov.py
|
||||
+++ pytest-cov-3.0.0/tests/test_pytest_cov.py
|
||||
@@ -968,7 +968,7 @@ def test_invalid_coverage_source(testdir
|
||||
'*10 passed*'
|
||||
])
|
||||
result.stderr.fnmatch_lines([
|
||||
- 'Coverage.py warning: No data was collected.*'
|
||||
+ '*No data was collected.*'
|
||||
])
|
||||
result.stdout.fnmatch_lines([
|
||||
'*Failed to generate report: No data to report.',
|
Loading…
x
Reference in New Issue
Block a user