mirror of
https://github.com/pybind/pybind11.git
synced 2026-04-20 14:59:27 +00:00
fix: follow rest of pybind11 closer with PYBIND11_HAS_SUBINTERPRETER_SUPPORT (#5710)
* fix: follow rest of pybind11 closer with PYBIND11_HAS_SUBINTERPRETER_SUPPORT Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com> * style: pre-commit fixes --------- Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
@@ -27,7 +27,7 @@ def test_independent_subinterpreters():
|
||||
|
||||
m = pytest.importorskip("mod_per_interpreter_gil")
|
||||
|
||||
if not m.PYBIND11_HAS_SUBINTERPRETER_SUPPORT:
|
||||
if not m.defined_PYBIND11_HAS_SUBINTERPRETER_SUPPORT:
|
||||
pytest.skip("Does not have subinterpreter support compiled in")
|
||||
|
||||
code = """
|
||||
@@ -101,7 +101,7 @@ def test_dependent_subinterpreters():
|
||||
|
||||
m = pytest.importorskip("mod_shared_interpreter_gil")
|
||||
|
||||
if not m.PYBIND11_HAS_SUBINTERPRETER_SUPPORT:
|
||||
if not m.defined_PYBIND11_HAS_SUBINTERPRETER_SUPPORT:
|
||||
pytest.skip("Does not have subinterpreter support compiled in")
|
||||
|
||||
code = """
|
||||
|
||||
Reference in New Issue
Block a user