Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-pywbem for openSUSE:Factory checked in at 2025-12-12 21:40:44 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-pywbem (Old) and /work/SRC/openSUSE:Factory/.python-pywbem.new.1939 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-pywbem" Fri Dec 12 21:40:44 2025 rev:26 rq:1322559 version:1.8.1 Changes: -------- --- /work/SRC/openSUSE:Factory/python-pywbem/python-pywbem.changes 2025-12-11 18:31:46.265362303 +0100 +++ /work/SRC/openSUSE:Factory/.python-pywbem.new.1939/python-pywbem.changes 2025-12-12 21:41:16.273071229 +0100 @@ -1,0 +2,6 @@ +Wed Dec 10 00:50:41 UTC 2025 - Steve Kowalik <[email protected]> + +- Add patch support-pytest-9.patch: + * Support pytest 9 changes. + +------------------------------------------------------------------- New: ---- support-pytest-9.patch ----------(New B)---------- New: - Add patch support-pytest-9.patch: * Support pytest 9 changes. ----------(New E)---------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-pywbem.spec ++++++ --- /var/tmp/diff_new_pack.qTlmCm/_old 2025-12-12 21:41:17.261112872 +0100 +++ /var/tmp/diff_new_pack.qTlmCm/_new 2025-12-12 21:41:17.265113041 +0100 @@ -29,6 +29,8 @@ Group: System/Management URL: https://pywbem.github.io/ Source0: https://files.pythonhosted.org/packages/source/p/pywbem/pywbem-%{version}.tar.gz +# PATCH-FIX-UPSTREAM gh#pywbem/pywbem#3350 +Patch0: support-pytest-9.patch BuildRequires: %{python_module FormEncode >= 2.0.0} BuildRequires: %{python_module PyYAML >= 6.0.2} BuildRequires: %{python_module certifi >= 2024.07.04} @@ -36,7 +38,7 @@ BuildRequires: %{python_module lxml >= 4.6.4} BuildRequires: %{python_module pip} BuildRequires: %{python_module ply >= 3.10} -BuildRequires: %{python_module pytest >= 6.2.5} +BuildRequires: %{python_module pytest >= 7.0.0} BuildRequires: %{python_module pytz} BuildRequires: %{python_module requests >= 2.32.4} BuildRequires: %{python_module requests-mock} ++++++ support-pytest-9.patch ++++++ >From 757a4903276169088fa0010fe03c823b94ecc30a Mon Sep 17 00:00:00 2001 From: Steve Kowalik <[email protected]> Date: Wed, 26 Nov 2025 15:21:46 +1100 Subject: [PATCH] Update pytest_collect_file hook pytest_collect_file from pytest 7 on has deprecated the py.path arguments and replaced them with pathlib equivalents, bump the minimum version of pytest installed and use the new argument. --- test-requirements.txt | 2 +- tests/functiontest/conftest.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/test-requirements.txt b/test-requirements.txt index 088ab84da..43b013a16 100644 --- a/test-requirements.txt +++ b/test-requirements.txt @@ -23,7 +23,7 @@ packaging>=24.1 # Max pytest version < 8.0 because of issue with Deprecated warnings in pytest 8.0.x. # pytest-cov 4.0.0 depends on pytest>=4.6 pytest>=4.6.0,!=6.0,<8.0; python_version <= '3.9' -pytest>=6.2.5,<8.0; python_version >= '3.10' +pytest>=7.0.0,<10.0; python_version >= '3.10' testfixtures>=6.9.0 # pylint>=2.15 requires colorama>=0.4.5 colorama>=0.4.5 diff --git a/tests/functiontest/conftest.py b/tests/functiontest/conftest.py index 79481361c..ea39cd462 100644 --- a/tests/functiontest/conftest.py +++ b/tests/functiontest/conftest.py @@ -205,17 +205,17 @@ def patched_makefile(self, mode='r', bufsize=-1): return self.fd -def pytest_collect_file(parent, path): +def pytest_collect_file(parent, file_path): """ py.test hook that is called for a directory to collect its test files. For an example very similar to what we do here, see https://docs.pytest.org/en/latest/example/nonpython.html """ - if path.ext == ".yaml": + if file_path.suffix == ".yaml": if hasattr(YamlFile, 'from_parent'): # pylint: disable=no-member - return YamlFile.from_parent(fspath=path, parent=parent) + return YamlFile.from_parent(path=file_path, parent=parent) # Direct creation has been deprecated in pytest, but # from_parent() was introduced only in pytest 6.0.0 and we # have to pin to lower pytest versions on py27/py34/py35.
