mirror of
https://github.com/python/cpython.git
synced 2025-08-24 18:55:00 +00:00
gh-57684: Update tests for PYTHONSAFEPATH=1 (#92358)
Fix tests failing with the PYTHONSAFEPATH=1 env var. Enhance also -P help in Python usage (python --help).
This commit is contained in:
parent
1303f8c927
commit
329afe78c3
8 changed files with 33 additions and 15 deletions
|
@ -49,7 +49,7 @@ static const char usage_2[] = "\
|
|||
.pyc extension; also PYTHONOPTIMIZE=x\n\
|
||||
-OO : do -O changes and also discard docstrings; add .opt-2 before\n\
|
||||
.pyc extension\n\
|
||||
-P : don't add sys.path[0]\n\
|
||||
-P : don't prepend a potentially unsafe path to sys.path\n\
|
||||
-q : don't print version and copyright messages on interactive startup\n\
|
||||
-s : don't add user site directory to sys.path; also PYTHONNOUSERSITE\n\
|
||||
-S : don't imply 'import site' on initialization\n\
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue