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 2024-05-16 17:12:45 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-pytest-cov (Old) and /work/SRC/openSUSE:Factory/.python-pytest-cov.new.1880 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-pytest-cov" Thu May 16 17:12:45 2024 rev:32 rq:1174102 version:5.0.0 Changes: -------- --- /work/SRC/openSUSE:Factory/python-pytest-cov/python-pytest-cov.changes 2024-03-26 19:26:12.854624680 +0100 +++ /work/SRC/openSUSE:Factory/.python-pytest-cov.new.1880/python-pytest-cov.changes 2024-05-16 17:13:16.939805730 +0200 @@ -1,0 +2,7 @@ +Wed May 15 04:22:31 UTC 2024 - Steve Kowalik <steven.kowa...@suse.com> + +- Switch to pytest macro. +- Add patch support-coverage-75.patch: + * Support changes in coverage 7.5. + +------------------------------------------------------------------- New: ---- support-coverage-75.patch BETA DEBUG BEGIN: New:- Switch to pytest macro. - Add patch support-coverage-75.patch: * Support changes in coverage 7.5. BETA DEBUG END: ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-pytest-cov.spec ++++++ --- /var/tmp/diff_new_pack.4xLiIy/_old 2024-05-16 17:13:20.575937517 +0200 +++ /var/tmp/diff_new_pack.4xLiIy/_new 2024-05-16 17:13:20.575937517 +0200 @@ -32,6 +32,8 @@ 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 gh#pytest-dev/pytest-cov#643 +Patch0: support-coverage-75.patch BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} BuildRequires: %{python_module wheel} @@ -72,7 +74,6 @@ %check %if %{with test} -export PYTHONDONTWRITEBYTECODE=1 echo "import site;site.addsitedir(\"$(pwd)/src\")" > tests/sitecustomize.py # test_dist_missing_data - needs internet access # test_central_subprocess_change_cwd_with_pythonpath - needs pytest cov in venv which is not doable in OBS build @@ -82,7 +83,7 @@ donttest+=" or test_contexts" # gh#pytest-dev/pytest-cov#565 donttest+=" or test_dist_boxed" -%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib}:$PWD/tests py.test-%{$python_bin_suffix} -v -k "not (${donttest})" +%pytest -v -k "not (${donttest})" %endif %if ! %{with test} ++++++ support-coverage-75.patch ++++++ >From 89bd477d5d176666e2d4f3e38983bb69a055a457 Mon Sep 17 00:00:00 2001 From: Steve Kowalik <ste...@wedontsleep.org> Date: Wed, 15 May 2024 14:08:51 +1000 Subject: [PATCH] Support Coverage 7.5's HTML report changes Coverage 7.5 now writes out two other files when generating a HTML report -- class_index and function_index. We check explicitly for which files have been written, so add those two in if coverage is >= 7.5. --- tests/test_pytest_cov.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/test_pytest_cov.py b/tests/test_pytest_cov.py index bd9df38..114d34b 100644 --- a/tests/test_pytest_cov.py +++ b/tests/test_pytest_cov.py @@ -292,7 +292,11 @@ def test_term_report_does_not_interact_with_html_output(testdir): ) dest_dir = testdir.tmpdir.join(DEST_DIR) assert dest_dir.check(dir=True) - assert sorted(dest_dir.visit('**/*.html')) == [dest_dir.join('index.html'), dest_dir.join('test_funcarg_py.html')] + expected = [dest_dir.join('index.html'), dest_dir.join('test_funcarg_py.html')] + if coverage.version_info >= (7, 5): + expected.insert(0, dest_dir.join('function_index.html')) + expected.insert(0, dest_dir.join('class_index.html')) + assert sorted(dest_dir.visit('**/*.html')) == expected assert dest_dir.join('index.html').check() assert result.ret == 0