diff options
author | Victor Stinner <vstinner@python.org> | 2019-12-10 20:32:59 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-12-10 20:32:59 +0100 |
commit | 07871b256c76ca561554d1f82b430fc64a5c7ee0 (patch) | |
tree | 2870562d7cf2df7448eb5a16aedb00f2ec3f34ee /Lib/test/test_asyncio/test_sslproto.py | |
parent | 680068c28896baba36fa7361976e07bb0f588561 (diff) | |
download | cpython-07871b256c76ca561554d1f82b430fc64a5c7ee0.tar.gz cpython-07871b256c76ca561554d1f82b430fc64a5c7ee0.zip |
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.
Diffstat (limited to 'Lib/test/test_asyncio/test_sslproto.py')
-rw-r--r-- | Lib/test/test_asyncio/test_sslproto.py | 3 |
1 files changed, 2 insertions, 1 deletions
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, |