Skip to content

Commit

Permalink
tests: skip test_system_namespace QEMU on s390x musl libc
Browse files Browse the repository at this point in the history
  • Loading branch information
mayeut committed Oct 3, 2024
1 parent 294291d commit 099faeb
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions psutil/tests/test_testutils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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]
Expand Down

0 comments on commit 099faeb

Please sign in to comment.