From 6e423207b384fc1bbe7837e58e3d6ea6a10e9f6c2d30f401cc3e09e693390654 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Mon, 13 Oct 2025 15:45:49 +0000 Subject: [PATCH] - Add 0001-match-coverage-7.10.7-warnings.patch to fix tests OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest-cov?expand=0&rev=55 --- 0001-match-coverage-7.10.7-warnings.patch | 27 +++++++++++++++++++++++ python-pytest-cov.changes | 5 +++++ python-pytest-cov.spec | 2 ++ 3 files changed, 34 insertions(+) create mode 100644 0001-match-coverage-7.10.7-warnings.patch diff --git a/0001-match-coverage-7.10.7-warnings.patch b/0001-match-coverage-7.10.7-warnings.patch new file mode 100644 index 0000000..e81cc73 --- /dev/null +++ b/0001-match-coverage-7.10.7-warnings.patch @@ -0,0 +1,27 @@ +From b4fb003e3b6634cfc0db07aaf1e29cf6a94f037a Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= +Date: Mon, 13 Oct 2025 16:12:57 +0200 +Subject: [PATCH] match coverage 7.10.7 warnings + +--- + tests/test_pytest_cov.py | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/tests/test_pytest_cov.py b/tests/test_pytest_cov.py +index 6ca09fe..c71d776 100644 +--- a/tests/test_pytest_cov.py ++++ b/tests/test_pytest_cov.py +@@ -1435,8 +1435,8 @@ def test_filterwarnings_error(testdir): + result.stdout.fnmatch_lines(['* 1 passed *']) + result.stderr.fnmatch_lines( + [ +- '* (module-not-measured)', +- '* (no-data-collected)', ++ '* (module-not-measured)*', ++ '* (no-data-collected)*', + '* CovReportWarning: Failed to generate report: No data to report.', + ] + ) +-- +2.51.0 + diff --git a/python-pytest-cov.changes b/python-pytest-cov.changes index 89294a1..cf34761 100644 --- a/python-pytest-cov.changes +++ b/python-pytest-cov.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Oct 13 14:15:34 UTC 2025 - Markéta Machová + +- Add 0001-match-coverage-7.10.7-warnings.patch to fix tests + ------------------------------------------------------------------- Fri Sep 19 08:43:55 UTC 2025 - Markéta Machová diff --git a/python-pytest-cov.spec b/python-pytest-cov.spec index 44fc58a..4aba5fb 100644 --- a/python-pytest-cov.spec +++ b/python-pytest-cov.spec @@ -32,6 +32,8 @@ Summary: Pytest plugin for coverage reporting License: MIT URL: https://github.com/pytest-dev/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/pull/722 match coverage 7.10.7 warnings +Patch0: 0001-match-coverage-7.10.7-warnings.patch BuildRequires: %{python_module base >= 3.9} BuildRequires: %{python_module hatch-fancy-pypi-readme} BuildRequires: %{python_module hatchling}