Skip to content

Commit ec1b57c

Browse files
authored
Disable PYBIND11_ASSERT_GIL_HELD_INCREF_DECREF generally for PyPy (not just PyPy Windows). (#4751)
1 parent 0620d71 commit ec1b57c

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

include/pybind11/detail/common.h

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -324,10 +324,7 @@ PYBIND11_WARNING_POP
324324
#endif
325325

326326
// See description of PR #4246:
327-
#if !defined(NDEBUG) && !defined(PY_ASSERT_GIL_HELD_INCREF_DECREF) \
328-
&& !(defined(PYPY_VERSION) \
329-
&& defined(_MSC_VER)) /* PyPy Windows: pytest hangs indefinitely at the end of the \
330-
process (see PR #4268) */ \
327+
#if !defined(NDEBUG) && !defined(PY_ASSERT_GIL_HELD_INCREF_DECREF) && !defined(PYPY_VERSION) \
331328
&& !defined(PYBIND11_ASSERT_GIL_HELD_INCREF_DECREF)
332329
# define PYBIND11_ASSERT_GIL_HELD_INCREF_DECREF
333330
#endif

0 commit comments

Comments
 (0)