From f44941e2d528f909d20e1390338652ddcf7f7587 Mon Sep 17 00:00:00 2001 From: Audrey Dutcher Date: Mon, 18 Nov 2024 01:43:30 -0700 Subject: [PATCH] disable test_dlopen_handle on FreeBSD (#144) --- testing/cffi0/test_ownlib.py | 2 +- testing/cffi1/test_re_python.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/testing/cffi0/test_ownlib.py b/testing/cffi0/test_ownlib.py index e1a61d67..1180ee11 100644 --- a/testing/cffi0/test_ownlib.py +++ b/testing/cffi0/test_ownlib.py @@ -389,7 +389,7 @@ def test_modify_struct_value(self): def test_dlopen_handle(self): if self.module is None: pytest.skip("fix the auto-generation of the tiny test lib") - if sys.platform == 'win32' or is_musl: + if sys.platform == 'win32' or is_musl or sys.platform.startswith('freebsd'): pytest.skip("uses 'dl' explicitly") if self.__class__.Backend is CTypesBackend: pytest.skip("not for the ctypes backend") diff --git a/testing/cffi1/test_re_python.py b/testing/cffi1/test_re_python.py index fdf083ac..5311893e 100644 --- a/testing/cffi1/test_re_python.py +++ b/testing/cffi1/test_re_python.py @@ -269,7 +269,7 @@ def test_selfref(): def test_dlopen_handle(): import _cffi_backend from re_python_pysrc import ffi - if sys.platform == 'win32' or is_musl: + if sys.platform == 'win32' or is_musl or sys.platform.startswith('freebsd'): pytest.skip("uses 'dl' explicitly") ffi1 = FFI() ffi1.cdef("""void *dlopen(const char *filename, int flags);