Skip to content

Commit

Permalink
bpo-38841: Skip asyncio test_create_datagram_endpoint_existing_sock_u…
Browse files Browse the repository at this point in the history
…nix (GH-17294)

on platforms lacking a functional bind() for named unix domain sockets



https://bugs.python.org/issue38841



Automerge-Triggered-By: @asvetlov
  • Loading branch information
xdegaye authored and miss-islington committed Nov 20, 2019
1 parent b93f31f commit 559bad1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Lib/test/test_asyncio/test_base_events.py
Expand Up @@ -1700,7 +1700,7 @@ def test_create_datagram_endpoint_sock_unix(self):
self.loop.run_until_complete(protocol.done)
self.assertEqual('CLOSED', protocol.state)

@unittest.skipUnless(hasattr(socket, 'AF_UNIX'), 'No UNIX Sockets')
@support.skip_unless_bind_unix_socket
def test_create_datagram_endpoint_existing_sock_unix(self):
with test_utils.unix_socket_path() as path:
sock = socket.socket(socket.AF_UNIX, type=socket.SOCK_DGRAM)
Expand Down
@@ -0,0 +1,2 @@
Skip asyncio test_create_datagram_endpoint_existing_sock_unix on platforms
lacking a functional bind() for named unix domain sockets.

0 comments on commit 559bad1

Please sign in to comment.