summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2019-12-08 07:38:16 (GMT)
committerGitHub <noreply@github.com>2019-12-08 07:38:16 (GMT)
commit6cac1136665b70f72db291b95876d7affcf1d2db (patch)
treebaf9af65677cacb92ec5d10d8567e90bf8246b17 /Doc
parent2b7de6696bf2f924cd2cd9ff0a539c8aa37c6244 (diff)
downloadcpython-6cac1136665b70f72db291b95876d7affcf1d2db.zip
cpython-6cac1136665b70f72db291b95876d7affcf1d2db.tar.gz
cpython-6cac1136665b70f72db291b95876d7affcf1d2db.tar.bz2
bpo-38991: Remove test.support.strip_python_stderr() (GH-17490)
test.support: run_python_until_end(), assert_python_ok() and assert_python_failure() functions no longer strip whitespaces from stderr.
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/test.rst16
1 files changed, 9 insertions, 7 deletions
diff --git a/Doc/library/test.rst b/Doc/library/test.rst
index 4a61566..73b3fe5 100644
--- a/Doc/library/test.rst
+++ b/Doc/library/test.rst
@@ -686,13 +686,6 @@ The :mod:`test.support` module defines the following functions:
``sys.stdout`` if it's not set.
-.. function:: strip_python_strerr(stderr)
-
- Strip the *stderr* of a Python process from potential debug output
- emitted by the interpreter. This will typically be run on the result of
- :meth:`subprocess.Popen.communicate`.
-
-
.. function:: args_from_interpreter_flags()
Return a list of command line arguments reproducing the current settings
@@ -1499,6 +1492,9 @@ script execution tests.
in a subprocess. The values can include ``__isolated``, ``__cleanenv``,
``__cwd``, and ``TERM``.
+ .. versionchanged:: 3.9
+ The function no longer strips whitespaces from *stderr*.
+
.. function:: assert_python_ok(*args, **env_vars)
@@ -1512,6 +1508,9 @@ script execution tests.
Python is started in isolated mode (command line option ``-I``),
except if the ``__isolated`` keyword is set to ``False``.
+ .. versionchanged:: 3.9
+ The function no longer strips whitespaces from *stderr*.
+
.. function:: assert_python_failure(*args, **env_vars)
@@ -1521,6 +1520,9 @@ script execution tests.
See :func:`assert_python_ok` for more options.
+ .. versionchanged:: 3.9
+ The function no longer strips whitespaces from *stderr*.
+
.. function:: spawn_python(*args, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, **kw)