From 0bb5357eb965a3754abb50332f475ee65dee5211 Mon Sep 17 00:00:00 2001 From: Matthias Bussonnier Date: Tue, 6 Jun 2017 19:17:06 -0700 Subject: [PATCH] Mark timeout test (~20s) as slow. Make it skipped by default which highly reduce the runtime of the all test suite --- trio/tests/test_socket.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/trio/tests/test_socket.py b/trio/tests/test_socket.py index c405f7eae7..2150a553ce 100644 --- a/trio/tests/test_socket.py +++ b/trio/tests/test_socket.py @@ -4,6 +4,8 @@ import socket as stdlib_socket import inspect +from .._core.tests.tutil import slow + from .. import _core from .. import socket as tsocket from ..testing import assert_yields, wait_all_tasks_blocked @@ -549,6 +551,8 @@ def connect(self, *args, **kwargs): await sock.connect(listener.getsockname()) assert sock.fileno() == -1 +@slow +async def test_SocketType_connect_paths_not_listening(): # Failed connect (hopefully after raising BlockingIOError) with tsocket.socket() as sock, tsocket.socket() as non_listener: # Claim an unused port