Skip to content

Commit

Permalink
Merge pull request #9655 from jepler/keep-pythonpath
Browse files Browse the repository at this point in the history
run_tests.py: keep PYTHONPATH when requested
  • Loading branch information
tannewt authored Sep 24, 2024
2 parents 726639b + 71eea30 commit 1ab26ba
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/run-tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -829,6 +829,10 @@ def run_one_test(test_file):
"PATH": os.environ["PATH"],
"LANG": "en_US.UTF-8",
}
# CIRCUITPY-CHANGE: --keep-path applies to PYTHONPATH as well
if args.keep_path and os.getenv("PYTHONPATH"):
e["PYTHONPATH"] += ":" + os.getenv("PYTHONPATH")

# run CPython to work out expected output
try:
output_expected = subprocess.check_output(
Expand Down

0 comments on commit 1ab26ba

Please sign in to comment.