From b997e2db2a9aefb6f817344b02dda70aafd37cf0f305579bb6e316cc0eb08c1a Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Fri, 4 Jul 2025 05:43:54 +0000 Subject: [PATCH] - Add patch support-pytest-cov-6.patch: * Support pytest output change. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest-tldr?expand=0&rev=16 --- python-pytest-tldr.changes | 6 ++++++ python-pytest-tldr.spec | 5 +++-- support-pytest-cov-6.patch | 13 +++++++++++++ 3 files changed, 22 insertions(+), 2 deletions(-) create mode 100644 support-pytest-cov-6.patch diff --git a/python-pytest-tldr.changes b/python-pytest-tldr.changes index 0f30e6f..ddcea14 100644 --- a/python-pytest-tldr.changes +++ b/python-pytest-tldr.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Fri Jul 4 05:41:05 UTC 2025 - Steve Kowalik + +- Add patch support-pytest-cov-6.patch: + * Support pytest output change. + ------------------------------------------------------------------- Wed May 7 06:59:51 UTC 2025 - Steve Kowalik diff --git a/python-pytest-tldr.spec b/python-pytest-tldr.spec index e994b2e..0f51e4a 100644 --- a/python-pytest-tldr.spec +++ b/python-pytest-tldr.spec @@ -23,6 +23,7 @@ Summary: A pytest plugin that limits the output to just the things you ne License: BSD-3-Clause URL: https://github.com/freakboy3742/pytest-tldr Source: https://files.pythonhosted.org/packages/source/p/pytest-tldr/pytest-tldr-%{version}.tar.gz +Patch0: support-pytest-cov-6.patch BuildRequires: %{python_module pip} BuildRequires: %{python_module pytest >= 3.5.0} BuildRequires: %{python_module pytest-cov} @@ -38,7 +39,7 @@ BuildArch: noarch A pytest plugin that limits the output to just the things you need. %prep -%setup -q -n pytest-tldr-%{version} +%autosetup -p1 -n pytest-tldr-%{version} %build %pyproject_wheel @@ -53,7 +54,7 @@ A pytest plugin that limits the output to just the things you need. %files %{python_files} %doc README.rst %license LICENSE -%pycache_only %{python_sitelib}/__pycache__/*.pyc +%pycache_only %{python_sitelib}/__pycache__/pytest_tldr.*.pyc %{python_sitelib}/pytest_tldr.py %{python_sitelib}/pytest_tldr-%{version}.dist-info diff --git a/support-pytest-cov-6.patch b/support-pytest-cov-6.patch new file mode 100644 index 0000000..9d3bc87 --- /dev/null +++ b/support-pytest-cov-6.patch @@ -0,0 +1,13 @@ +Index: pytest-tldr-0.2.5/tests/test_plugins.py +=================================================================== +--- pytest-tldr-0.2.5.orig/tests/test_plugins.py ++++ pytest-tldr-0.2.5/tests/test_plugins.py +@@ -10,7 +10,7 @@ def test_coverage(testdir): + result.stdout.fnmatch_lines( + [ + "test_coverage.py::test_coverage ... ok", +- "*----- coverage: platform *-----", ++ "*_____ coverage: platform *_____", + "Name Stmts Miss Cover", + "--------------------------------------", + "test_coverage.py 2 0 100%",