Skip to content

Commit fac23b6

Browse files
authored
error_fetch_and_normalize: PyPy 7.3.10+ does not need the PR #4079 workaround anymore. (#4154)
1 parent a48ec3e commit fac23b6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/pybind11/pytypes.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -473,7 +473,7 @@ struct error_fetch_and_normalize {
473473
+ " failed to obtain the name "
474474
"of the normalized active exception type.");
475475
}
476-
#if defined(PYPY_VERSION)
476+
#if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x07030a00
477477
// This behavior runs the risk of masking errors in the error handling, but avoids a
478478
// conflict with PyPy, which relies on the normalization here to change OSError to
479479
// FileNotFoundError (https://github.com/pybind/pybind11/issues/4075).

0 commit comments

Comments
 (0)