From 099faeb48ecb5f3307a1cf4581b1a0ab62a78b60 Mon Sep 17 00:00:00 2001 From: mayeut Date: Sat, 15 Jun 2024 20:24:59 +0200 Subject: [PATCH] tests: skip test_system_namespace QEMU on s390x musl libc --- psutil/tests/test_testutils.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/psutil/tests/test_testutils.py b/psutil/tests/test_testutils.py index f7ce52dd6..ea277caaf 100755 --- a/psutil/tests/test_testutils.py +++ b/psutil/tests/test_testutils.py @@ -29,8 +29,11 @@ from psutil.tests import CI_TESTING from psutil.tests import COVERAGE from psutil.tests import HAS_NET_CONNECTIONS_UNIX +from psutil.tests import LIBC from psutil.tests import PYTHON_EXE from psutil.tests import PYTHON_EXE_ENV +from psutil.tests import QEMU_USER +from psutil.tests import S390X from psutil.tests import PsutilTestCase from psutil.tests import TestMemoryLeak from psutil.tests import bind_socket @@ -443,6 +446,10 @@ def test_process_namespace(self): fun = [x for x in ns.iter(ns.getters) if x[1] == 'ppid'][0][0] self.assertEqual(fun(), p.ppid()) + @unittest.skipIf( + QEMU_USER and S390X and LIBC != "glibc", + "deadlock with QEMU on s390x musl libc", + ) def test_system_namespace(self): ns = system_namespace() fun = [x for x in ns.iter(ns.getters) if x[1] == 'net_if_addrs'][0][0]