Skip to content

Commit 559bad1

Browse files
xdegayemiss-islington
authored andcommitted
bpo-38841: Skip asyncio test_create_datagram_endpoint_existing_sock_unix (GH-17294)
on platforms lacking a functional bind() for named unix domain sockets https://bugs.python.org/issue38841 Automerge-Triggered-By: @asvetlov
1 parent b93f31f commit 559bad1

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

Lib/test/test_asyncio/test_base_events.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1700,7 +1700,7 @@ def test_create_datagram_endpoint_sock_unix(self):
17001700
self.loop.run_until_complete(protocol.done)
17011701
self.assertEqual('CLOSED', protocol.state)
17021702

1703-
@unittest.skipUnless(hasattr(socket, 'AF_UNIX'), 'No UNIX Sockets')
1703+
@support.skip_unless_bind_unix_socket
17041704
def test_create_datagram_endpoint_existing_sock_unix(self):
17051705
with test_utils.unix_socket_path() as path:
17061706
sock = socket.socket(socket.AF_UNIX, type=socket.SOCK_DGRAM)
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Skip asyncio test_create_datagram_endpoint_existing_sock_unix on platforms
2+
lacking a functional bind() for named unix domain sockets.

0 commit comments

Comments
 (0)