From 4461d704e23a13dfbe78ea3020e4cbeff4b68dc2 Mon Sep 17 00:00:00 2001 From: xdegaye Date: Fri, 3 May 2019 17:09:17 +0200 Subject: bpo-36341: Fix tests calling bind() on AF_UNIX sockets (GH-12399) Those tests may fail with PermissionError. https://bugs.python.org/issue36341 --- Lib/test/test_asyncio/test_server.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Lib/test/test_asyncio/test_server.py') diff --git a/Lib/test/test_asyncio/test_server.py b/Lib/test/test_asyncio/test_server.py index 6de058a1e9..ab7f3debbc 100644 --- a/Lib/test/test_asyncio/test_server.py +++ b/Lib/test/test_asyncio/test_server.py @@ -73,7 +73,7 @@ class SelectorStartServerTests(BaseStartServer, unittest.TestCase): def new_loop(self): return asyncio.SelectorEventLoop() - @unittest.skipUnless(hasattr(socket, 'AF_UNIX'), 'no Unix sockets') + @support.skip_unless_bind_unix_socket def test_start_unix_server_1(self): HELLO_MSG = b'1' * 1024 * 5 + b'\n' started = threading.Event() -- cgit v1.2.1