Skip to content

Commit 02f8375

Browse files
committed
pythongh-149879: Fix test_asyncio on Cygwin
Skip tests on UNIX sockets since they hang on Cygwin.
1 parent 08afe29 commit 02f8375

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

Lib/test/support/socket_helper.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,8 @@ def skip_unless_bind_unix_socket(test):
149149
"""Decorator for tests requiring a functional bind() for unix sockets."""
150150
if not hasattr(socket, 'AF_UNIX'):
151151
return unittest.skip('No UNIX Sockets')(test)
152+
if sys.platform == 'cygwin':
153+
return unittest.skip('UNIX sockets hang on Cygwin')(test)
152154
global _bind_nix_socket_error
153155
if _bind_nix_socket_error is None:
154156
from .os_helper import TESTFN, unlink

0 commit comments

Comments
 (0)