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

https://bugs.python.org/issue38841

Automerge-Triggered-By: @asvetlov
(cherry picked from commit 559bad1a70ed50cc9caa7cb303b6ac1fe6a34af3)

Co-authored-by: xdegaye <xdegaye@gmail.com>
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 ccdd3bae73367920f64d2ef5dee89e857b176134..92fdaf17e20110dbf16b5c1e600bbd4a1bf7620d 100644 (file)
@@ -1694,7 +1694,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.