bpo-40275: Use new test.support helper submodules in tests (GH-20824)

This commit is contained in:
Hai Shi 2020-06-25 20:15:40 +08:00 committed by GitHub
parent 91698d8caa
commit 06a40d7359
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 29 additions and 21 deletions

View file

@ -146,7 +146,7 @@ def skip_unless_bind_unix_socket(test):
return unittest.skip('No UNIX Sockets')(test)
global _bind_nix_socket_error
if _bind_nix_socket_error is None:
from test.support import TESTFN, unlink
from .os_helper import TESTFN, unlink
path = TESTFN + "can_bind_unix_socket"
with socket.socket(socket.AF_UNIX) as sock:
try: