cffi, revbumb, fix tests (#11710)

Co-authored-by: Oscar Lesta <oscar.lesta@gmail.com>
This commit is contained in:
Schrijvers Luc
2025-02-03 15:03:23 +01:00
committed by GitHub
parent c50b5fadd6
commit b2f6564a8a
2 changed files with 50 additions and 1 deletions

View File

@@ -4,9 +4,10 @@ HOMEPAGE="https://cffi.readthedocs.io/
https://pypi.org/project/cffi/"
COPYRIGHT="2012-2021 Armin Rigo, Maciej Fijalkowski"
LICENSE="MIT"
REVISION="4"
REVISION="5"
SOURCE_URI="https://files.pythonhosted.org/packages/source/c/cffi/cffi-$portVersion.tar.gz"
CHECKSUM_SHA256="d400bfb9a37b1351253cb402671cea7e89bdecc294e8016a707f6d1d8ac934f9"
PATCHES="cffi-$portVersion.patchset"
ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"

View File

@@ -0,0 +1,48 @@
From 341e07c1e8aa6f78ecfa5809a920a369f4b05405 Mon Sep 17 00:00:00 2001
From: Begasus <begasus@gmail.com>
Date: Mon, 3 Feb 2025 13:55:59 +0100
Subject: Fix tests
diff --git a/testing/cffi0/test_ownlib.py b/testing/cffi0/test_ownlib.py
index bbdab8c..ee9aae8 100644
--- a/testing/cffi0/test_ownlib.py
+++ b/testing/cffi0/test_ownlib.py
@@ -388,7 +388,7 @@ class TestOwnLib(object):
def test_dlopen_handle(self):
if self.module is None:
py.test.skip("fix the auto-generation of the tiny test lib")
- if sys.platform == 'win32' or is_musl:
+ if sys.platform == 'win32' or sys.platform[:5] == 'haiku' or is_musl:
py.test.skip("uses 'dl' explicitly")
if self.__class__.Backend is CTypesBackend:
py.test.skip("not for the ctypes backend")
diff --git a/testing/cffi0/test_parsing.py b/testing/cffi0/test_parsing.py
index 5d93a8d..20d8469 100644
--- a/testing/cffi0/test_parsing.py
+++ b/testing/cffi0/test_parsing.py
@@ -16,7 +16,7 @@ class FakeBackend(object):
if sys.platform == 'win32':
assert name is None or "msvcr" in name
else:
- assert name is None or "libc" in name or "libm" in name
+ assert name is None or "libc" in name or "libm" in name or "libroot" in name
return FakeLibrary()
def new_function_type(self, args, result, has_varargs):
diff --git a/testing/cffi1/test_re_python.py b/testing/cffi1/test_re_python.py
index 45dd70c..50598be 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 sys.platform[:5] == 'haiku' or is_musl:
py.test.skip("uses 'dl' explicitly")
ffi1 = FFI()
ffi1.cdef("""void *dlopen(const char *filename, int flags);
--
2.45.2