From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Thu, 6 Jun 2019 12:42:53 +0000 (-0700) Subject: bpo-36763, _testembed: enable assert() in release mode (GH-13857) X-Git-Tag: v3.8.0b2~192 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=406284173a43f5c34643133e2f132ae15a071a23;p=python bpo-36763, _testembed: enable assert() in release mode (GH-13857) (cherry picked from commit 013a18a65167725f140c0395211050ae03501b12) Co-authored-by: Victor Stinner --- diff --git a/Programs/_testembed.c b/Programs/_testembed.c index 3e1210e04d..9633f4610b 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 -#include "pycore_initconfig.h" /* FIXME: PEP 587 makes these functions public */ +#include "pycore_initconfig.h" /* _PyConfig_InitCompatConfig() */ +#include "pycore_pystate.h" /* _PyRuntime */ #include #include "pythread.h" #include