Skip to content

Commit 6d202aa

Browse files
committed
Disable PYBIND11_ASSERT_GIL_HELD_INCREF_DECREF for PyPy under Windows.
1 parent 8699639 commit 6d202aa

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
@@ -262,7 +262,9 @@
262262
# define PYBIND11_HAS_U8STRING
263263
#endif
264264

265+
// See description of PR #4246:
265266
#if !defined(NDEBUG) && !defined(PY_ASSERT_GIL_HELD_INCREF_DECREF) \
267+
&& !(defined(PYPY_VERSION) && defined(_MSC_VER)) /* Tests hang indefinitely at startup. */ \
266268
&& !defined(PYBIND11_ASSERT_GIL_HELD_INCREF_DECREF)
267269
# define PYBIND11_ASSERT_GIL_HELD_INCREF_DECREF
268270
#endif

0 commit comments

Comments
 (0)