Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-psutil for openSUSE:Factory checked in at 2025-12-02 13:18:52 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-psutil (Old) and /work/SRC/openSUSE:Factory/.python-psutil.new.14147 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-psutil" Tue Dec 2 13:18:52 2025 rev:89 rq:1320594 version:7.1.3 Changes: -------- --- /work/SRC/openSUSE:Factory/python-psutil/python-psutil.changes 2025-11-14 16:10:51.703117187 +0100 +++ /work/SRC/openSUSE:Factory/.python-psutil.new.14147/python-psutil.changes 2025-12-02 13:19:22.904902218 +0100 @@ -1,0 +2,5 @@ +Thu Nov 27 11:31:09 UTC 2025 - Markéta Machová <[email protected]> + +- Add upstream pytest9.patch to fix tests + +------------------------------------------------------------------- New: ---- pytest9.patch ----------(New B)---------- New: - Add upstream pytest9.patch to fix tests ----------(New E)---------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-psutil.spec ++++++ --- /var/tmp/diff_new_pack.LlS0BQ/_old 2025-12-02 13:19:24.040949915 +0100 +++ /var/tmp/diff_new_pack.LlS0BQ/_new 2025-12-02 13:19:24.044950082 +0100 @@ -36,6 +36,8 @@ License: BSD-3-Clause URL: https://github.com/giampaolo/psutil Source: https://files.pythonhosted.org/packages/source/p/psutil/psutil-%{version}.tar.gz +# PATCH-FIX-UPSTREAM https://github.com/giampaolo/psutil/commit/40e27872d534ed849245fdb0c4604ca678d5e9fc Make ntuples work with subTest of new pytest release +Patch: pytest9.patch BuildRequires: %{python_module devel} BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} ++++++ pytest9.patch ++++++ >From 40e27872d534ed849245fdb0c4604ca678d5e9fc Mon Sep 17 00:00:00 2001 From: Giampaolo Rodola <[email protected]> Date: Sun, 23 Nov 2025 00:08:41 +0100 Subject: [PATCH] Make ntuples work with subTest of new pytest release When running tests in parallel, the new pytest 9.X is unable to de/serialize nametuples when passed as: with self.subTest(foo=ntuple): ... --- tests/test_posix.py | 2 +- tests/test_system.py | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/psutil/tests/test_posix.py b/psutil/tests/test_posix.py index 2cc9dbd84c..ab2c10c9f3 100755 --- a/psutil/tests/test_posix.py +++ b/psutil/tests/test_posix.py @@ -416,7 +416,7 @@ def test_users_started(self): if not tstamp: return pytest.skip(f"cannot interpret tstamp in who output\n{out}") - with self.subTest(psutil=psutil.users(), who=out): + with self.subTest(psutil=str(psutil.users()), who=out): for idx, u in enumerate(psutil.users()): psutil_value = datetime.datetime.fromtimestamp( u.started diff --git a/psutil/tests/test_system.py b/psutil/tests/test_system.py index 79325c7599..c00ab6fb96 100755 --- a/psutil/tests/test_system.py +++ b/psutil/tests/test_system.py @@ -244,7 +244,7 @@ def test_users(self): users = psutil.users() assert users for user in users: - with self.subTest(user=user): + with self.subTest(user=str(user)): assert user.name assert isinstance(user.name, str) assert isinstance(user.terminal, (str, type(None))) @@ -488,7 +488,9 @@ def test_cpu_times_comparison(self): per_cpu = psutil.cpu_times(percpu=True) summed_values = base._make([sum(num) for num in zip(*per_cpu)]) for field in base._fields: - with self.subTest(field=field, base=base, per_cpu=per_cpu): + with self.subTest( + field=field, base=str(base), per_cpu=str(per_cpu) + ): assert ( abs(getattr(base, field) - getattr(summed_values, field)) < 2
