Skip to content

Commit b770824

Browse files
committed
Disable PYBIND11_ASSERT_GIL_HELD_INCREF_DECREF for PyPy under Windows.
1 parent b7b1727 commit b770824

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

include/pybind11/detail/common.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,9 @@
259259
# endif
260260
#endif
261261

262+
// See description of PR #4246:
262263
#if !defined(NDEBUG) && !defined(PY_ASSERT_GIL_HELD_INCREF_DECREF) \
264+
&& !(defined(PYPY_VERSION) && defined(_MSC_VER)) /* Tests hang indefinitely at startup. */ \
263265
&& !defined(PYBIND11_ASSERT_GIL_HELD_INCREF_DECREF)
264266
# define PYBIND11_ASSERT_GIL_HELD_INCREF_DECREF
265267
#endif

0 commit comments

Comments
 (0)