Skip to content

Commit 708ce4d

Browse files
authored
Fix GraalPy version parsing on dev builds (#5609)
* Fix GraalPy version parsing on dev builds * Unskip test on GraalPy
1 parent a28ea8c commit 708ce4d

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

tests/env.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
_graalpy_version = (
1717
sys.modules["__graalpython__"].get_graalvm_version() if GRAALPY else "0.0.0"
1818
)
19-
GRAALPY_VERSION = tuple(int(t) for t in _graalpy_version.split(".")[:3])
19+
GRAALPY_VERSION = tuple(int(t) for t in _graalpy_version.split("-")[0].split(".")[:3])
2020
PY_GIL_DISABLED = bool(sysconfig.get_config_var("Py_GIL_DISABLED"))
2121

2222

tests/test_callbacks.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,6 @@ def test_custom_func():
223223
assert m.roundtrip(m.custom_function)(4) == 36
224224

225225

226-
@pytest.mark.skipif("env.GRAALPY", reason="TODO debug segfault")
227226
def test_custom_func2():
228227
assert m.custom_function2(3) == 27
229228
assert m.roundtrip(m.custom_function2)(3) == 27

0 commit comments

Comments
 (0)