From 2de6e398e1c0453de51886e18366ac58aebd8b92 Mon Sep 17 00:00:00 2001 From: Ethan Steinberg Date: Fri, 30 Dec 2022 10:44:55 -0800 Subject: [PATCH] [v2.10] Revert the addition of the GIL check feature (#4432) * Revert the GIL check * Update include/pybind11/detail/common.h Co-authored-by: Henry Schreiner --- include/pybind11/detail/common.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/pybind11/detail/common.h b/include/pybind11/detail/common.h index 068ae0137..62bf521fb 100644 --- a/include/pybind11/detail/common.h +++ b/include/pybind11/detail/common.h @@ -329,7 +329,8 @@ PYBIND11_WARNING_POP && defined(_MSC_VER)) /* PyPy Windows: pytest hangs indefinitely at the end of the \ process (see PR #4268) */ \ && !defined(PYBIND11_ASSERT_GIL_HELD_INCREF_DECREF) -# define PYBIND11_ASSERT_GIL_HELD_INCREF_DECREF +// The following define will be enabled by default in the 2.11 release +// define PYBIND11_ASSERT_GIL_HELD_INCREF_DECREF #endif // #define PYBIND11_STR_LEGACY_PERMISSIVE