summaryrefslogtreecommitdiff
path: root/Programs/_testembed.c
diff options
context:
space:
mode:
authorAmmar Askar <ammar@ammaraskar.com>2021-07-07 15:07:12 -0400
committerGitHub <noreply@github.com>2021-07-07 20:07:12 +0100
commit4823d9a51281ebbc8e8d82a0dd3edc7d13ea8ac7 (patch)
treeb7c97af7b1d15da75321e1434997163cd8c6b9d0 /Programs/_testembed.c
parent3d3027c5fcc683c14ee55ad231d79971ba12b24d (diff)
downloadcpython-git-4823d9a51281ebbc8e8d82a0dd3edc7d13ea8ac7.tar.gz
bpo-43950: Add option to opt-out of PEP-657 (GH-27023)
Co-authored-by: Pablo Galindo <Pablogsal@gmail.com> Co-authored-by: Batuhan Taskaya <batuhanosmantaskaya@gmail.com> Co-authored-by: Ammar Askar <ammar@ammaraskar.com>
Diffstat (limited to 'Programs/_testembed.c')
-rw-r--r--Programs/_testembed.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/Programs/_testembed.c b/Programs/_testembed.c
index 64a8714db0..73e1f382d7 100644
--- a/Programs/_testembed.c
+++ b/Programs/_testembed.c
@@ -528,6 +528,9 @@ static int test_init_from_config(void)
putenv("PYTHONPROFILEIMPORTTIME=0");
config.import_time = 1;
+ putenv("PYTHONNODEBUGRANGES=0");
+ config.no_debug_ranges = 1;
+
config.show_ref_count = 1;
/* FIXME: test dump_refs: bpo-34223 */
@@ -686,6 +689,7 @@ static void set_most_env_vars(void)
putenv("PYTHONMALLOC=malloc");
putenv("PYTHONTRACEMALLOC=2");
putenv("PYTHONPROFILEIMPORTTIME=1");
+ putenv("PYTHONNODEBUGRANGES=1");
putenv("PYTHONMALLOCSTATS=1");
putenv("PYTHONUTF8=1");
putenv("PYTHONVERBOSE=1");