Skip to content

Test failure under WASI due to assuming ctypes is always available #666

@brettcannon

Description

@brettcannon
________________ test_glibc_version_string_ctypes_raise_oserror ________________

monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x21a84b0>

    def test_glibc_version_string_ctypes_raise_oserror(monkeypatch):
        def patched_cdll(name):
            raise OSError("Dynamic loading not supported")

>       monkeypatch.setattr(ctypes, "CDLL", patched_cdll)
E       AttributeError: None has no attribute 'CDLL'

tests/test_manylinux.py:146: AttributeError

def test_glibc_version_string_ctypes_raise_oserror(monkeypatch):
def patched_cdll(name):
raise OSError("Dynamic loading not supported")
monkeypatch.setattr(ctypes, "CDLL", patched_cdll)
assert _glibc_version_string_ctypes() is None

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions