diff --git a/python-psutil-skip-test-in-konflux.patch b/python-psutil-skip-test-in-konflux.patch new file mode 100644 index 0000000..3f2386b --- /dev/null +++ b/python-psutil-skip-test-in-konflux.patch @@ -0,0 +1,23 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: Lumir Balhar +Date: Wed, 02 Jul 2026 08:00:00 +0000 +Subject: [PATCH] Skip TestSystemVirtualMemory.test_used incompatible with Konflux + +--- + psutil/tests/test_linux.py | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/psutil/tests/test_linux.py b/psutil/tests/test_linux.py +--- a/psutil/tests/test_linux.py ++++ b/psutil/tests/test_linux.py +@@ -246,6 +246,7 @@ + self.assertAlmostEqual( + vmstat_value, psutil_value, delta=TOLERANCE_SYS_MEM) + ++ @unittest.skip(reason="Does not work in Konflux") + @retry_on_failure() + def test_used(self): + # Older versions of procps used slab memory to calculate used memory. +-- +2.51.0 + diff --git a/python-psutil.spec b/python-psutil.spec index fd9f434..e0ca78b 100644 --- a/python-psutil.spec +++ b/python-psutil.spec @@ -3,7 +3,7 @@ Name: python-%{srcname} Version: 5.8.0 -Release: 12%{?dist} +Release: 13%{?dist} Summary: %{sum} License: BSD @@ -20,6 +20,10 @@ Patch1: python-psutil-skip-tests-in-brew.patch # Add tolerance to psutil.tests.test_linux.TestSystemVirtualMemory.test_total Patch2: https://github.com/giampaolo/psutil/pull/1935.patch#/python-psutil-add-tolerance.patch +# +# Skip tests that fail in Konflux +# +Patch3: python-psutil-skip-test-in-konflux.patch BuildRequires: make BuildRequires: gcc @@ -88,6 +92,10 @@ make test CI_TESTING=1 PYTHON=%{__python3} PYTHONPATH=%{buildroot}/%{python3_sit %{python3_sitearch}/%{srcname}/tests/ %changelog +* Thu Jul 02 2026 Lumir Balhar - 5.8.0-13 +- Skip TestSystemVirtualMemory.test_used in Konflux +Resolves: RHEL-183555 + * Tue Feb 08 2022 Tomáš Hrnčiar - 5.8.0-12 - Add automatically generated Obsoletes tag with the python39- prefix for smoother upgrade from RHEL8