From 07871b256c76ca561554d1f82b430fc64a5c7ee0 Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Tue, 10 Dec 2019 20:32:59 +0100 Subject: bpo-38614: Use test.support.LOOPBACK_TIMEOUT constant (GH-17554) Replace hardcoded timeout constants in tests with LOOPBACK_TIMEOUT of test.support, so it's easier to ajdust this timeout for all tests at once. --- Lib/test/test_asyncio/test_sslproto.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Lib/test/test_asyncio/test_sslproto.py') diff --git a/Lib/test/test_asyncio/test_sslproto.py b/Lib/test/test_asyncio/test_sslproto.py index a7c089018ab..7ba3d7361ad 100644 --- a/Lib/test/test_asyncio/test_sslproto.py +++ b/Lib/test/test_asyncio/test_sslproto.py @@ -3,6 +3,7 @@ import logging import socket import sys +from test import support import unittest import weakref from unittest import mock @@ -699,7 +700,7 @@ class BaseStartTLS(func_tests.FunctionalTestCaseMixin): ssl=client_sslctx, server_hostname='', loop=self.loop, - ssl_handshake_timeout=1.0) + ssl_handshake_timeout=support.LOOPBACK_TIMEOUT) with self.tcp_server(server, max_clients=1, -- cgit v1.2.3