Skip to content

Commit 436b648

Browse files
authored
bpo-40939: Remove some extra references to PYTHONOLDPARSER (GH-20815)
Automerge-Triggered-By: @pablogsal
1 parent 1ed83ad commit 436b648

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

Programs/_testembed.c

-3
Original file line numberDiff line numberDiff line change
@@ -485,8 +485,6 @@ static int test_init_from_config(void)
485485

486486
config.install_signal_handlers = 0;
487487

488-
putenv("PYTHONOLDPARSER=1");
489-
490488
/* FIXME: test use_environment */
491489

492490
putenv("PYTHONHASHSEED=42");
@@ -673,7 +671,6 @@ static void set_most_env_vars(void)
673671
putenv("PYTHONNOUSERSITE=1");
674672
putenv("PYTHONFAULTHANDLER=1");
675673
putenv("PYTHONIOENCODING=iso8859-1:replace");
676-
putenv("PYTHONOLDPARSER=1");
677674
putenv("PYTHONPLATLIBDIR=env_platlibdir");
678675
}
679676

Tools/scripts/run_tests.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,8 @@ def main(regrtest_args):
2525
'-u', # Unbuffered stdout and stderr
2626
'-W', 'default', # Warnings set to 'default'
2727
'-bb', # Warnings about bytes/bytearray
28+
'-E', # Ignore environment variables
2829
]
29-
if 'PYTHONOLDPARSER' not in os.environ:
30-
args.append('-E') # Ignore environment variables
3130

3231
# Allow user-specified interpreter options to override our defaults.
3332
args.extend(test.support.args_from_interpreter_flags())

0 commit comments

Comments
 (0)