Skip to content

Commit

Permalink
tests: skip test_net_if_addrs QEMU on s390x musl libc
Browse files Browse the repository at this point in the history
  • Loading branch information
mayeut committed Jun 15, 2024
1 parent 946969f commit aaa0606
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions psutil/tests/test_contracts.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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():
Expand Down

0 comments on commit aaa0606

Please sign in to comment.