bpo-40275: Move transient_internet from test.support to socket_helper (GH-19711)

This commit is contained in:
Serhiy Storchaka 2020-04-29 10:36:20 +03:00 committed by GitHub
parent bb4a585d90
commit bfb1cf4465
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
15 changed files with 153 additions and 144 deletions

View file

@ -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
==============================================================================