summaryrefslogtreecommitdiff
path: root/Doc/library/test.rst
diff options
context:
space:
mode:
authorNick Coghlan <ncoghlan@gmail.com>2018-03-25 23:03:10 +1000
committerGitHub <noreply@github.com>2018-03-25 23:03:10 +1000
commitd5d9e02dd3c6df06a8dd9ce75ee9b52976420a8b (patch)
treec3c02b573a85d3a5caa61e1dd5188ba6bec36392 /Doc/library/test.rst
parentbc77eff8b96be4f035e665ab35c1d06e22f46491 (diff)
downloadcpython-git-d5d9e02dd3c6df06a8dd9ce75ee9b52976420a8b.tar.gz
bpo-33053: -m now adds *starting* directory to sys.path (GH-6231)
Historically, -m added the empty string as sys.path zero, meaning it resolved imports against the current working directory, the same way -c and the interactive prompt do. This changes the sys.path initialisation to add the *starting* working directory as sys.path[0] instead, such that changes to the working directory while the program is running will have no effect on imports when using the -m switch.
Diffstat (limited to 'Doc/library/test.rst')
-rw-r--r--Doc/library/test.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/library/test.rst b/Doc/library/test.rst
index 6041f529c1..0746fcfde0 100644
--- a/Doc/library/test.rst
+++ b/Doc/library/test.rst
@@ -1332,8 +1332,8 @@ script execution tests.
.. function:: run_python_until_end(*args, **env_vars)
Set up the environment based on *env_vars* for running the interpreter
- in a subprocess. The values can include ``__isolated``, ``__cleavenv``,
- and ``TERM``.
+ in a subprocess. The values can include ``__isolated``, ``__cleanenv``,
+ ``__cwd``, and ``TERM``.
.. function:: assert_python_ok(*args, **env_vars)