summaryrefslogtreecommitdiff
path: root/Doc/library
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2020-04-29 10:36:20 +0300
committerGitHub <noreply@github.com>2020-04-29 10:36:20 +0300
commitbfb1cf44658934cbcd9707fb717d6770c78fbeb3 (patch)
treea9dcce79d42f76509491b3d8b165f6737143cbc5 /Doc/library
parentbb4a585d903e7fe0a46ded8c2ee3f47435ad6a66 (diff)
downloadcpython-git-bfb1cf44658934cbcd9707fb717d6770c78fbeb3.tar.gz
bpo-40275: Move transient_internet from test.support to socket_helper (GH-19711)
Diffstat (limited to 'Doc/library')
-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 c2aaecc183..f7e6eba018 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
==============================================================================