Skip to content

Commit 4062841

Browse files
bpo-36763, _testembed: enable assert() in release mode (GH-13857)
(cherry picked from commit 013a18a) Co-authored-by: Victor Stinner <[email protected]>
1 parent 23f41a6 commit 4062841

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

Programs/_testembed.c

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
1-
/* FIXME: PEP 587 makes these functions public */
21
#ifndef Py_BUILD_CORE_MODULE
32
# define Py_BUILD_CORE_MODULE
43
#endif
54

5+
/* Always enable assertion (even in release mode) */
6+
#undef NDEBUG
7+
68
#include <Python.h>
7-
#include "pycore_initconfig.h" /* FIXME: PEP 587 makes these functions public */
9+
#include "pycore_initconfig.h" /* _PyConfig_InitCompatConfig() */
10+
#include "pycore_pystate.h" /* _PyRuntime */
811
#include <Python.h>
912
#include "pythread.h"
1013
#include <inttypes.h>

0 commit comments

Comments
 (0)