mirror of
https://github.com/python/cpython.git
synced 2026-06-04 16:50:51 +00:00
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).
This commit is contained in:
parent
8115360153
commit
e020836fd4
1 changed files with 1 additions and 1 deletions
|
|
@ -1112,7 +1112,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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue