mirror of
https://github.com/python/cpython.git
synced 2025-12-15 21:44:50 +00:00
bpo-40275: Move transient_internet from test.support to socket_helper (GH-19711)
This commit is contained in:
parent
bb4a585d90
commit
bfb1cf4465
15 changed files with 153 additions and 144 deletions
|
|
@ -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
|
||||
==============================================================================
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue