summaryrefslogtreecommitdiffstats
path: root/Doc/library/test.rst
diff options
context:
space:
mode:
Diffstat (limited to 'Doc/library/test.rst')
-rw-r--r--Doc/library/test.rst9
1 files changed, 9 insertions, 0 deletions
diff --git a/Doc/library/test.rst b/Doc/library/test.rst
index a8dc354..699db14 100644
--- a/Doc/library/test.rst
+++ b/Doc/library/test.rst
@@ -607,6 +607,15 @@ The :mod:`test.support` module defines the following functions:
target of the "as" clause, if there is one.
+.. function:: flush_std_streams()
+
+ Call the ``flush()`` method on :data:`sys.stdout` and then on
+ :data:`sys.stderr`. It can be used to make sure that the logs order is
+ consistent before writing into stderr.
+
+ .. versionadded:: 3.11
+
+
.. function:: print_warning(msg)
Print a warning into :data:`sys.__stderr__`. Format the message as: