Skip to content

Commit 4bc7a11

Browse files
committed
Disable GC test for non-CPython
1 parent edcb5ac commit 4bc7a11

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/test_invalid_holder_access.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
import pytest
77

8+
import env # noqa: F401
89
import pybind11_tests
910
from pybind11_tests import invalid_holder_access as m
1011

@@ -55,6 +56,7 @@ def test_manual_new():
5556
vec.append(4)
5657

5758

59+
@pytest.mark.skipif("env.PYPY or env.GRAALPY", reason="Cannot reliably trigger GC")
5860
@pytest.mark.skipif(
5961
pybind11_tests.cpp_std_num < 14,
6062
reason="std::{unique_ptr,make_unique} not available in C++11",

0 commit comments

Comments
 (0)