mirror of
https://github.com/pybind/pybind11.git
synced 2026-04-20 06:49:25 +00:00
ci: update to GraalPy 24.2 and mention in README (#5586)
* ci: update to GraalPy 24.2 and mention in README Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com> * tests: update for GRAALPY 24.2 and better printout Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com> * tests: use __graalpython__ for version number Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com> * Update README.rst --------- Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com>
This commit is contained in:
@@ -5,11 +5,13 @@ import re
|
||||
|
||||
import pytest
|
||||
|
||||
import env # noqa: F401
|
||||
import env
|
||||
from pybind11_tests import enums as m
|
||||
|
||||
|
||||
@pytest.mark.xfail("env.GRAALPY", reason="TODO should get fixed on GraalPy side")
|
||||
@pytest.mark.xfail(
|
||||
env.GRAALPY and env.GRAALPY_VERSION < (24, 2), reason="Fixed in GraalPy 24.2"
|
||||
)
|
||||
def test_unscoped_enum():
|
||||
assert str(m.UnscopedEnum.EOne) == "UnscopedEnum.EOne"
|
||||
assert str(m.UnscopedEnum.ETwo) == "UnscopedEnum.ETwo"
|
||||
@@ -197,7 +199,9 @@ def test_implicit_conversion():
|
||||
assert repr(x) == "{<EMode.EFirstMode: 1>: 3, <EMode.ESecondMode: 2>: 4}"
|
||||
|
||||
|
||||
@pytest.mark.xfail("env.GRAALPY", reason="TODO should get fixed on GraalPy side")
|
||||
@pytest.mark.xfail(
|
||||
env.GRAALPY and env.GRAALPY_VERSION < (24, 2), reason="Fixed in GraalPy 24.2"
|
||||
)
|
||||
def test_binary_operators():
|
||||
assert int(m.Flags.Read) == 4
|
||||
assert int(m.Flags.Write) == 2
|
||||
|
||||
Reference in New Issue
Block a user