diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 8b1e0bc..2d863fe 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -29,8 +29,7 @@ jobs: - "3.12" # CPython 3.13 final is scheduled for October 2024: # https://peps.python.org/pep-0719/ - # TODO: Reenable 3.13 once fixed. - #- "3.13" + - "3.13" # PyPy versions: # - https://github.com/actions/setup-python/blob/main/docs/advanced-usage.md diff --git a/tests/test_pythoncapi_compat_cext.c b/tests/test_pythoncapi_compat_cext.c index bf26fa6..4fc043c 100644 --- a/tests/test_pythoncapi_compat_cext.c +++ b/tests/test_pythoncapi_compat_cext.c @@ -255,7 +255,10 @@ test_frame(PyObject *Py_UNUSED(module), PyObject* Py_UNUSED(ignored)) // test PyFrame_GetLocals() PyObject *locals = PyFrame_GetLocals(frame); assert(locals != _Py_NULL); + // Python 3.13 creates a local proxy +#if PY_VERSION_HEX < 0x030D0000 assert(PyDict_Check(locals)); +#endif // test PyFrame_GetGlobals() PyObject *globals = PyFrame_GetGlobals(frame);