Skip to content

Commit

Permalink
add skipIf decorator to skip test_glibc_version_string_ctypes_raise_o…
Browse files Browse the repository at this point in the history
…serror if ctypes is available
  • Loading branch information
Kevin Chang committed Oct 21, 2023
1 parent 8e49113 commit 58171f9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/test_manylinux.py
Expand Up @@ -140,6 +140,7 @@ def test_glibc_version_string_ctypes_missing(monkeypatch):
assert _glibc_version_string_ctypes() is None


@pytest.mark.skipif(not ctypes, reason="requires ctypes")
def test_glibc_version_string_ctypes_raise_oserror(monkeypatch):
def patched_cdll(name):
raise OSError("Dynamic loading not supported")
Expand Down

0 comments on commit 58171f9

Please sign in to comment.