From d8eb4c49b8e121ad110b4deaea2843cc10eea373 Mon Sep 17 00:00:00 2001 From: Michael Simacek Date: Tue, 8 Apr 2025 14:03:02 +0200 Subject: [PATCH 1/2] Fix GraalPy version parsing on dev builds --- tests/env.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/env.py b/tests/env.py index 9de53999b0..d234c425d4 100644 --- a/tests/env.py +++ b/tests/env.py @@ -16,7 +16,7 @@ _graalpy_version = ( sys.modules["__graalpython__"].get_graalvm_version() if GRAALPY else "0.0.0" ) -GRAALPY_VERSION = tuple(int(t) for t in _graalpy_version.split(".")[:3]) +GRAALPY_VERSION = tuple(int(t) for t in _graalpy_version.split("-")[0].split(".")[:3]) PY_GIL_DISABLED = bool(sysconfig.get_config_var("Py_GIL_DISABLED")) From 5fd33ad9ea2d8fcd816a33f1cb316009a52c882f Mon Sep 17 00:00:00 2001 From: Michael Simacek Date: Tue, 8 Apr 2025 14:12:59 +0200 Subject: [PATCH 2/2] Unskip test on GraalPy --- tests/test_callbacks.py | 1 - 1 file changed, 1 deletion(-) diff --git a/tests/test_callbacks.py b/tests/test_callbacks.py index c43a9290ac..9eab10ccb6 100644 --- a/tests/test_callbacks.py +++ b/tests/test_callbacks.py @@ -223,7 +223,6 @@ def test_custom_func(): assert m.roundtrip(m.custom_function)(4) == 36 -@pytest.mark.skipif("env.GRAALPY", reason="TODO debug segfault") def test_custom_func2(): assert m.custom_function2(3) == 27 assert m.roundtrip(m.custom_function2)(3) == 27