-
Notifications
You must be signed in to change notification settings - Fork 271
Closed
Description
________________ 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
packaging/tests/test_manylinux.py
Lines 142 to 147 in 1b9da44
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 |