Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
vstinner committed Nov 30, 2023
1 parent e85efd1 commit 6ea6dbe
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Doc/c-api/config.rst
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ Initialize Python
Create a new initialization configuration using :ref:`Python Configuration
<init-python-config>` default values.
It must be freed by c:func:`PyInitConfig_Free`.
It must be freed by :c:func:`PyInitConfig_Free`.
Return ``NULL`` on memory allocation failure.
Expand Down
9 changes: 8 additions & 1 deletion Modules/_testcapi/config.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
#define Py_LIMITED_API 0x030d0000 // 3.13
#ifndef _MSC_VER
# include "pyconfig.h" // Py_GIL_DISABLED
#endif

#ifndef Py_GIL_DISABLED
// The PyInitConfig API was added to the limited C API version 3.13
# define Py_LIMITED_API 0x030d0000
#endif
#include "parts.h"

static PyObject *
Expand Down

0 comments on commit 6ea6dbe

Please sign in to comment.