]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-93852: Add test.support.create_unix_domain_name() (#93914)
authorVictor Stinner <vstinner@python.org>
Fri, 17 Jun 2022 11:16:51 +0000 (13:16 +0200)
committerGitHub <noreply@github.com>
Fri, 17 Jun 2022 11:16:51 +0000 (13:16 +0200)
commitc5b750dc0b4d4e58047c9d93c635fa26b06562f7
treea3a1701db431c87b54036b0f890dcf5c4a4230dd
parentffc228dd4e409336f2c2ad54125de384bf1a767b
gh-93852: Add test.support.create_unix_domain_name() (#93914)

test_asyncio, test_logging, test_socket and test_socketserver now
create AF_UNIX domains in the current directory to no longer fail
with OSError("AF_UNIX path too long") if the temporary directory (the
TMPDIR environment variable) is too long.

Modify the following tests to use create_unix_domain_name():

* test_asyncio
* test_logging
* test_socket
* test_socketserver

test_asyncio.utils: remove unused time import.
Lib/test/support/socket_helper.py
Lib/test/test_asyncio/test_unix_events.py
Lib/test/test_asyncio/utils.py
Lib/test/test_logging.py
Lib/test/test_socket.py
Lib/test/test_socketserver.py
Misc/NEWS.d/next/Tests/2022-06-16-21-38-18.gh-issue-93852.U_Hl6s.rst [new file with mode: 0644]