Skip transient tests on GraalPy (#5422)

This commit is contained in:
Michael Šimáček
2024-10-25 17:28:15 +02:00
committed by GitHub
parent f7e14e985b
commit 75e48c5f95
7 changed files with 24 additions and 2 deletions

View File

@@ -2,7 +2,7 @@ from __future__ import annotations
import pytest
import env # noqa: F401
import env
from pybind11_tests import ConstructorStats
from pybind11_tests import operators as m
@@ -51,6 +51,9 @@ def test_operator_overloading():
v2 /= v1
assert str(v2) == "[2.000000, 8.000000]"
if env.GRAALPY:
pytest.skip("ConstructorStats is incompatible with GraalPy.")
cstats = ConstructorStats.get(m.Vector2)
assert cstats.alive() == 3
del v1