From d88d48ede86c6f656357f82d9b28977a253d154e Mon Sep 17 00:00:00 2001 From: mayeut Date: Sat, 15 Jun 2024 20:39:14 +0200 Subject: [PATCH] tests: skip test_net_if_addrs QEMU on s390x musl libc --- psutil/tests/test_contracts.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/psutil/tests/test_contracts.py b/psutil/tests/test_contracts.py index 9154c5c70..667d35b17 100755 --- a/psutil/tests/test_contracts.py +++ b/psutil/tests/test_contracts.py @@ -29,8 +29,10 @@ from psutil.tests import HAS_NET_IO_COUNTERS from psutil.tests import HAS_SENSORS_FANS from psutil.tests import HAS_SENSORS_TEMPERATURES +from psutil.tests import LIBC from psutil.tests import PYPY from psutil.tests import QEMU_USER +from psutil.tests import S390X from psutil.tests import SKIP_SYSCONS from psutil.tests import PsutilTestCase from psutil.tests import create_sockets @@ -265,6 +267,10 @@ def test_net_connections(self): for conn in ret: assert is_namedtuple(conn) + @unittest.skipIf( + QEMU_USER and S390X and LIBC != "glibc", + "deadlock with QEMU on s390x musl libc", + ) def test_net_if_addrs(self): # Duplicate of test_system.py. Keep it anyway. for ifname, addrs in psutil.net_if_addrs().items():