diff --git a/python-psutil-skip-test-sensors-temperatures.patch b/python-psutil-skip-test-sensors-temperatures.patch new file mode 100644 index 0000000..ab3df98 --- /dev/null +++ b/python-psutil-skip-test-sensors-temperatures.patch @@ -0,0 +1,13 @@ +diff --git a/psutil/tests/test_system.py b/psutil/tests/test_system.py +index c146f3e..671babc 100755 +--- a/psutil/tests/test_system.py ++++ b/psutil/tests/test_system.py +@@ -903,7 +903,7 @@ class TestNetAPIs(PsutilTestCase): + + + class TestSensorsAPIs(PsutilTestCase): +- @unittest.skipIf(not HAS_SENSORS_TEMPERATURES, "not supported") ++ @unittest.skip("https://github.com/giampaolo/psutil/issues/2434") + def test_sensors_temperatures(self): + temps = psutil.sensors_temperatures() + for name, entries in temps.items(): diff --git a/python-psutil.spec b/python-psutil.spec index 90d1f88..dd8d3d3 100644 --- a/python-psutil.spec +++ b/python-psutil.spec @@ -1,6 +1,6 @@ Name: python-psutil Version: 5.9.8 -Release: 3%{?dist} +Release: 4%{?dist} Summary: A process and system utilities module for Python License: BSD-3-Clause @@ -24,6 +24,11 @@ Patch: python-psutil-skip-test_emulate_multi_cpu.patch # Failure reported upstream: https://github.com/giampaolo/psutil/issues/2374 # Patch: python-psutil-skip-test_debug.patch +# +# Skip test_system.TestSensorsAPIs.test_sensors_temperatures +# Failure reported upstream: https://github.com/giampaolo/psutil/issues/2434 +# +Patch: python-psutil-skip-test-sensors-temperatures.patch BuildRequires: gcc BuildRequires: sed @@ -112,6 +117,9 @@ APPVEYOR=1 %{py3_test_envvars} %{python3} psutil/tests/runner.py %changelog +* Tue Aug 20 2024 Karolina Surma - 5.9.8-4 +- Skip unreliable test_sensors_temperatures + * Mon Jun 24 2024 Troy Dawson - 5.9.8-3 - Bump release for June 2024 mass rebuild