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.rst15
1 files changed, 8 insertions, 7 deletions
diff --git a/Doc/library/test.rst b/Doc/library/test.rst
index c2aaecc..f7e6eba 100644
--- a/Doc/library/test.rst
+++ b/Doc/library/test.rst
@@ -314,7 +314,7 @@ The :mod:`test.support` module defines the following constants:
Usually, a timeout using :data:`INTERNET_TIMEOUT` should not mark a test as
failed, but skip the test instead: see
- :func:`~test.support.transient_internet`.
+ :func:`~test.support.socket_helper.transient_internet`.
Its default value is 1 minute.
@@ -759,12 +759,6 @@ The :mod:`test.support` module defines the following functions:
A context manager that temporarily sets the process umask.
-.. function:: transient_internet(resource_name, *, timeout=30.0, errnos=())
-
- A context manager that raises :exc:`ResourceDenied` when various issues
- with the internet connection manifest themselves as exceptions.
-
-
.. function:: disable_faulthandler()
A context manager that replaces ``sys.stderr`` with ``sys.__stderr__``.
@@ -1488,6 +1482,13 @@ The :mod:`test.support.socket_helper` module provides support for socket tests.
sockets.
+.. function:: transient_internet(resource_name, *, timeout=30.0, errnos=())
+
+ A context manager that raises :exc:`~test.support.ResourceDenied` when
+ various issues with the internet connection manifest themselves as
+ exceptions.
+
+
:mod:`test.support.script_helper` --- Utilities for the Python execution tests
==============================================================================