Skip to content

Commit 3522972

Browse files
committed
Fix test_cmd_line.py
The failing test was unsetting `PYTHONPATH`, but neglecting to unset `RUSTPYTHONPATH`, which obviously was not significant for the original CPython test. Including `RUSTPYTHONPATH` in the test fixes it.
1 parent 2f8e518 commit 3522972

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎Lib/test/test_cmd_line.py‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,8 @@ def test_empty_PYTHONPATH_issue16309(self):
411411
path = ":".join(sys.path)
412412
path = path.encode("ascii", "backslashreplace")
413413
sys.stdout.buffer.write(path)"""
414-
rc1, out1, err1 = assert_python_ok('-c', code, PYTHONPATH="")
414+
# TODO: RUSTPYTHON we must unset RUSTPYTHONPATH as well
415+
rc1, out1, err1 = assert_python_ok('-c', code, PYTHONPATH="", RUSTPYTHONPATH="")
415416
rc2, out2, err2 = assert_python_ok('-c', code, __isolated=False)
416417
# regarding to Posix specification, outputs should be equal
417418
# for empty and unset PYTHONPATH

0 commit comments

Comments
 (0)