mirror of
https://github.com/pybind/pybind11.git
synced 2026-04-19 22:39:09 +00:00
Add support for GraalPy (#5380)
* Initial support for GraalPy * Mark tests that currently fail on GraalPy with xfail * Add graalpy to CI * Limit test deps on graalpy to available binary wheels * Skip cmake test installed_function on GraalPy CMake won't find libpython on GraalPy, it either fails or silently picks CPython's libpython. * Factor out setting function docstrings into a macro * Try to narrow down skipped tests
This commit is contained in:
@@ -242,6 +242,7 @@ def test_wrap():
|
||||
assert_references(a1m, a2, a1)
|
||||
|
||||
|
||||
@pytest.mark.skipif("env.GRAALPY", reason="Cannot reliably trigger GC")
|
||||
def test_numpy_view(capture):
|
||||
with capture:
|
||||
ac = m.ArrayClass()
|
||||
@@ -465,7 +466,7 @@ def test_array_resize():
|
||||
assert b.shape == (8, 8)
|
||||
|
||||
|
||||
@pytest.mark.xfail("env.PYPY")
|
||||
@pytest.mark.xfail("env.PYPY or env.GRAALPY")
|
||||
def test_array_create_and_resize():
|
||||
a = m.create_and_resize(2)
|
||||
assert a.size == 4
|
||||
|
||||
Reference in New Issue
Block a user