Skip test_emulate_multi_cpu on aarch64
This commit is contained in:
parent
882c465b45
commit
ac619352d8
21
python-psutil-skip-test_emulate_multi_cpu-on-aarch64.patch
Normal file
21
python-psutil-skip-test_emulate_multi_cpu-on-aarch64.patch
Normal file
@ -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
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user