summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_asyncio
diff options
context:
space:
mode:
authorxdegaye <xdegaye@gmail.com>2019-05-03 15:09:17 (GMT)
committerMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2019-05-03 15:09:17 (GMT)
commit4461d704e23a13dfbe78ea3020e4cbeff4b68dc2 (patch)
treec1747fb1ab5906ff40a41308d9221f0d39139bd2 /Lib/test/test_asyncio
parenta8a79cacca4a03e2e682bf10108c80f502791755 (diff)
downloadcpython-4461d704e23a13dfbe78ea3020e4cbeff4b68dc2.zip
cpython-4461d704e23a13dfbe78ea3020e4cbeff4b68dc2.tar.gz
cpython-4461d704e23a13dfbe78ea3020e4cbeff4b68dc2.tar.bz2
bpo-36341: Fix tests calling bind() on AF_UNIX sockets (GH-12399)
Those tests may fail with PermissionError. https://bugs.python.org/issue36341
Diffstat (limited to 'Lib/test/test_asyncio')
-rw-r--r--Lib/test/test_asyncio/test_server.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_asyncio/test_server.py b/Lib/test/test_asyncio/test_server.py
index 6de058a..ab7f3de 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()