Skip to content

Commit 2aae3b8

Browse files
b-passhenryiii
authored andcommitted
I think this test is causing problems in 3.12, so try ifdefing it to see if the problems go away.
1 parent 6062230 commit 2aae3b8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/test_embed/test_subinterpreter.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,8 @@ TEST_CASE("Single Subinterpreter") {
8181
unsafe_reset_internals_for_single_interpreter();
8282
}
8383

84+
#if PY_VERSION_HEX >= 0x030D0000
8485
TEST_CASE("Move Subinterpreter") {
85-
8686
std::unique_ptr<py::subinterpreter> sub(new py::subinterpreter(py::subinterpreter::create()));
8787

8888
// on this thread, use the subinterpreter and import some non-trivial junk
@@ -108,6 +108,7 @@ TEST_CASE("Move Subinterpreter") {
108108

109109
unsafe_reset_internals_for_single_interpreter();
110110
}
111+
#endif
111112

112113
TEST_CASE("GIL Subinterpreter") {
113114

0 commit comments

Comments
 (0)