Skip to content

Commit

Permalink
Disable PYBIND11_ASSERT_GIL_HELD_INCREF_DECREF generally for PyPy (…
Browse files Browse the repository at this point in the history
…not just PyPy Windows). (#4751)
  • Loading branch information
Ralf W. Grosse-Kunstleve authored Jul 15, 2023
1 parent 0620d71 commit ec1b57c
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions include/pybind11/detail/common.h
Original file line number Diff line number Diff line change
Expand Up @@ -324,10 +324,7 @@ PYBIND11_WARNING_POP
#endif

// See description of PR #4246:
#if !defined(NDEBUG) && !defined(PY_ASSERT_GIL_HELD_INCREF_DECREF) \
&& !(defined(PYPY_VERSION) \
&& defined(_MSC_VER)) /* PyPy Windows: pytest hangs indefinitely at the end of the \
process (see PR #4268) */ \
#if !defined(NDEBUG) && !defined(PY_ASSERT_GIL_HELD_INCREF_DECREF) && !defined(PYPY_VERSION) \
&& !defined(PYBIND11_ASSERT_GIL_HELD_INCREF_DECREF)
# define PYBIND11_ASSERT_GIL_HELD_INCREF_DECREF
#endif
Expand Down

0 comments on commit ec1b57c

Please sign in to comment.