mirror of
https://github.com/python/cpython.git
synced 2025-07-23 11:15:24 +00:00
bpo-40275: Use new test.support helper submodules in tests (GH-20824)
This commit is contained in:
parent
91698d8caa
commit
06a40d7359
9 changed files with 29 additions and 21 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue