]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-40275: Avoid importing socket in test.support (GH-19603)
authorSerhiy Storchaka <storchaka@gmail.com>
Sat, 25 Apr 2020 07:06:29 +0000 (10:06 +0300)
committerGitHub <noreply@github.com>
Sat, 25 Apr 2020 07:06:29 +0000 (10:06 +0300)
commit16994912c93e8e5db7365d48b75d67d3f70dd7b2
tree248f177a93676406af6d6ae977bed868aa2d1a34
parent3c8a5b459d68b4337776ada1e04f5b33f90a2275
bpo-40275: Avoid importing socket in test.support (GH-19603)

* Move socket related functions from test.support to socket_helper.
* Import socket, nntplib and urllib.error lazily in transient_internet().
* Remove importing multiprocess.
37 files changed:
Doc/library/test.rst
Lib/test/_test_multiprocessing.py
Lib/test/eintrdata/eintr_tester.py
Lib/test/ssl_servers.py
Lib/test/support/__init__.py
Lib/test/support/socket_helper.py [new file with mode: 0644]
Lib/test/test_asynchat.py
Lib/test/test_asyncio/test_base_events.py
Lib/test/test_asyncio/test_events.py
Lib/test/test_asyncio/test_proactor_events.py
Lib/test/test_asyncio/test_sendfile.py
Lib/test/test_asyncio/test_server.py
Lib/test/test_asyncio/test_sock_lowlevel.py
Lib/test/test_asyncio/test_streams.py
Lib/test/test_asyncio/test_unix_events.py
Lib/test/test_asyncore.py
Lib/test/test_ftplib.py
Lib/test/test_httplib.py
Lib/test/test_imaplib.py
Lib/test/test_largefile.py
Lib/test/test_logging.py
Lib/test/test_nntplib.py
Lib/test/test_os.py
Lib/test/test_poplib.py
Lib/test/test_robotparser.py
Lib/test/test_selectors.py
Lib/test/test_smtpd.py
Lib/test/test_smtplib.py
Lib/test/test_socket.py
Lib/test/test_socketserver.py
Lib/test/test_ssl.py
Lib/test/test_stat.py
Lib/test/test_support.py
Lib/test/test_telnetlib.py
Lib/test/test_timeout.py
Lib/test/test_wsgiref.py
Lib/test/test_xmlrpc.py