Skip to content

Commit e020836

Browse files
authored
gh-149879: Fix test_capi on Cygwin (#150252)
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 8115360 commit e020836

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
@@ -1112,7 +1112,7 @@ static PyObject *
11121112
set_eval_frame_default(PyObject *self, PyObject *Py_UNUSED(args))
11131113
{
11141114
module_state *state = get_module_state(self);
1115-
_PyInterpreterState_SetEvalFrameFunc(_PyInterpreterState_GET(), _PyEval_EvalFrameDefault);
1115+
_PyInterpreterState_SetEvalFrameFunc(_PyInterpreterState_GET(), NULL);
11161116
Py_CLEAR(state->record_list);
11171117
Py_RETURN_NONE;
11181118
}

0 commit comments

Comments
 (0)