]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-38841: Skip asyncio test_create_datagram_endpoint_existing_sock_unix (GH-17294)
authorxdegaye <xdegaye@gmail.com>
Wed, 20 Nov 2019 20:02:07 +0000 (21:02 +0100)
committerMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 20 Nov 2019 20:02:07 +0000 (12:02 -0800)
on platforms lacking a functional bind() for named unix domain sockets

https://bugs.python.org/issue38841

Automerge-Triggered-By: @asvetlov
Lib/test/test_asyncio/test_base_events.py
Misc/NEWS.d/next/Tests/2019-11-20-16-08-19.bpo-38841.5F5Lbw.rst [new file with mode: 0644]

index 66191d9d1c1ad736f7f21a593b64d86999dcae06..ca99d5c6c0ac851ff37f54d5eefcd3bda3db3994 100644 (file)
@@ -1700,7 +1700,7 @@ class BaseEventLoopWithSelectorTests(test_utils.TestCase):
         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)
diff --git a/Misc/NEWS.d/next/Tests/2019-11-20-16-08-19.bpo-38841.5F5Lbw.rst b/Misc/NEWS.d/next/Tests/2019-11-20-16-08-19.bpo-38841.5F5Lbw.rst
new file mode 100644 (file)
index 0000000..1f4ae42
--- /dev/null
@@ -0,0 +1,2 @@
+Skip asyncio test_create_datagram_endpoint_existing_sock_unix on platforms
+lacking a functional bind() for named unix domain sockets.