Skip to content

Commit

Permalink
bpo-40939: Remove some extra references to PYTHONOLDPARSER (pythonGH-…
Browse files Browse the repository at this point in the history
…20815)

Automerge-Triggered-By: @pablogsal
  • Loading branch information
pablogsal authored and arun-mani-j committed Jul 21, 2020
1 parent 584cc2e commit 47de5a1
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
3 changes: 0 additions & 3 deletions Programs/_testembed.c
Original file line number Diff line number Diff line change
Expand Up @@ -485,8 +485,6 @@ static int test_init_from_config(void)

config.install_signal_handlers = 0;

putenv("PYTHONOLDPARSER=1");

/* FIXME: test use_environment */

putenv("PYTHONHASHSEED=42");
Expand Down Expand Up @@ -673,7 +671,6 @@ static void set_most_env_vars(void)
putenv("PYTHONNOUSERSITE=1");
putenv("PYTHONFAULTHANDLER=1");
putenv("PYTHONIOENCODING=iso8859-1:replace");
putenv("PYTHONOLDPARSER=1");
putenv("PYTHONPLATLIBDIR=env_platlibdir");
}

Expand Down
3 changes: 1 addition & 2 deletions Tools/scripts/run_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,8 @@ def main(regrtest_args):
'-u', # Unbuffered stdout and stderr
'-W', 'default', # Warnings set to 'default'
'-bb', # Warnings about bytes/bytearray
'-E', # Ignore environment variables
]
if 'PYTHONOLDPARSER' not in os.environ:
args.append('-E') # Ignore environment variables

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

0 comments on commit 47de5a1

Please sign in to comment.