From 9ef0509e0f56ed9c77ac54ed31e24cf1119fcb62 Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Fri, 22 May 2026 15:52:32 +0200 Subject: [PATCH] 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). --- Modules/_testinternalcapi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Modules/_testinternalcapi.c b/Modules/_testinternalcapi.c index b8a22c439e853d9..b960743c3ff8ae3 100644 --- a/Modules/_testinternalcapi.c +++ b/Modules/_testinternalcapi.c @@ -1105,7 +1105,7 @@ static PyObject * set_eval_frame_default(PyObject *self, PyObject *Py_UNUSED(args)) { module_state *state = get_module_state(self); - _PyInterpreterState_SetEvalFrameFunc(_PyInterpreterState_GET(), _PyEval_EvalFrameDefault); + _PyInterpreterState_SetEvalFrameFunc(_PyInterpreterState_GET(), NULL); Py_CLEAR(state->record_list); Py_RETURN_NONE; }