Skip to content

Commit b762375

Browse files
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 (cherry picked from commit 559bad1) Co-authored-by: xdegaye <[email protected]>
1 parent 836f137 commit b762375

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
@@ -1694,7 +1694,7 @@ def test_create_datagram_endpoint_sock_unix(self):
16941694
self.loop.run_until_complete(protocol.done)
16951695
self.assertEqual('CLOSED', protocol.state)
16961696

1697-
@unittest.skipUnless(hasattr(socket, 'AF_UNIX'), 'No UNIX Sockets')
1697+
@support.skip_unless_bind_unix_socket
16981698
def test_create_datagram_endpoint_existing_sock_unix(self):
16991699
with test_utils.unix_socket_path() as path:
17001700
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)