diff --git a/python-psutil-skip-test_emulate_multi_cpu-on-aarch64.patch b/python-psutil-skip-test_emulate_multi_cpu-on-aarch64.patch new file mode 100644 index 0000000..05f70fd --- /dev/null +++ b/python-psutil-skip-test_emulate_multi_cpu-on-aarch64.patch @@ -0,0 +1,21 @@ +diff --git a/psutil/tests/test_linux.py b/psutil/tests/test_linux.py +index 1096d3c..a9cc7ba 100755 +--- a/psutil/tests/test_linux.py ++++ b/psutil/tests/test_linux.py +@@ -14,6 +14,7 @@ import errno + import glob + import io + import os ++import platform + import re + import shutil + import socket +@@ -884,6 +885,8 @@ class TestSystemCPUFrequency(PsutilTestCase): + self.assertEqual(freq.max, 700.0) + + @unittest.skipIf(not HAS_CPU_FREQ, "not supported") ++ @unittest.skipIf(platform.machine() == "aarch64", ++ "https://github.com/giampaolo/psutil/issues/2373") + def test_emulate_multi_cpu(self): + def open_mock(name, *args, **kwargs): + n = name diff --git a/python-psutil.spec b/python-psutil.spec index 636dfd0..3af3cd9 100644 --- a/python-psutil.spec +++ b/python-psutil.spec @@ -14,6 +14,11 @@ Patch: python-psutil-skip-tests-in-mock.patch # avoid: AssertionError: 885725913.3 != 885725913.3000001 within 7 places # Patch: https://github.com/giampaolo/psutil/pull/2372.patch +# +# Skip test_emulate_multi_cpu on aarch64 +# Failure reported upstream: https://github.com/giampaolo/psutil/issues/2373 +# +Patch: python-psutil-skip-test_emulate_multi_cpu-on-aarch64.patch BuildRequires: gcc BuildRequires: sed