diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2019-06-06 12:42:53 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-06-06 12:42:53 (GMT) |
commit | 406284173a43f5c34643133e2f132ae15a071a23 (patch) | |
tree | c7f1837d4a71a2b2dc94446af7b28078ffd4b669 /Programs | |
parent | 23f41a64ea668296fa89e25f3cfa11f63026ecac (diff) | |
download | cpython-406284173a43f5c34643133e2f132ae15a071a23.zip cpython-406284173a43f5c34643133e2f132ae15a071a23.tar.gz cpython-406284173a43f5c34643133e2f132ae15a071a23.tar.bz2 |
bpo-36763, _testembed: enable assert() in release mode (GH-13857)
(cherry picked from commit 013a18a65167725f140c0395211050ae03501b12)
Co-authored-by: Victor Stinner <vstinner@redhat.com>
Diffstat (limited to 'Programs')
-rw-r--r-- | Programs/_testembed.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/Programs/_testembed.c b/Programs/_testembed.c index 3e1210e..9633f46 100644 --- a/Programs/_testembed.c +++ b/Programs/_testembed.c @@ -1,10 +1,13 @@ -/* FIXME: PEP 587 makes these functions public */ #ifndef Py_BUILD_CORE_MODULE # define Py_BUILD_CORE_MODULE #endif +/* Always enable assertion (even in release mode) */ +#undef NDEBUG + #include <Python.h> -#include "pycore_initconfig.h" /* FIXME: PEP 587 makes these functions public */ +#include "pycore_initconfig.h" /* _PyConfig_InitCompatConfig() */ +#include "pycore_pystate.h" /* _PyRuntime */ #include <Python.h> #include "pythread.h" #include <inttypes.h> |