Skip to content

Commit 9ef0509

Browse files
committed
gh-149879: Fix test_capi on Cygwin
Fix Test_Pep523AllowSpecialization tests of test_capi.test_misc. On Cygwin, _PyEval_EvalFrameDefault in _testinternalcapi is not the same as _PyEval_EvalFrameDefault in python.exe. So pass NULL explicitly to use the default function (_PyEval_EvalFrameDefault).
1 parent cf5c8c5 commit 9ef0509

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Modules/_testinternalcapi.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1105,7 +1105,7 @@ static PyObject *
11051105
set_eval_frame_default(PyObject *self, PyObject *Py_UNUSED(args))
11061106
{
11071107
module_state *state = get_module_state(self);
1108-
_PyInterpreterState_SetEvalFrameFunc(_PyInterpreterState_GET(), _PyEval_EvalFrameDefault);
1108+
_PyInterpreterState_SetEvalFrameFunc(_PyInterpreterState_GET(), NULL);
11091109
Py_CLEAR(state->record_list);
11101110
Py_RETURN_NONE;
11111111
}

0 commit comments

Comments
 (0)