diff options
author | Victor Stinner <vstinner@redhat.com> | 2019-06-06 14:25:18 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-06-06 14:25:18 +0200 |
commit | 013a18a65167725f140c0395211050ae03501b12 (patch) | |
tree | ed708d0c23ee6cc1e7af14b93a1021797181ca3a /Programs | |
parent | bpo-2661: Make mapping tests better usable for custom mapping classes. (GH-11... (diff) | |
download | cpython-013a18a65167725f140c0395211050ae03501b12.tar.gz cpython-013a18a65167725f140c0395211050ae03501b12.tar.bz2 cpython-013a18a65167725f140c0395211050ae03501b12.zip |
bpo-36763, _testembed: enable assert() in release mode (GH-13857)
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 3e1210e04d8..9633f4610b5 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> |