diff options
author | Victor Stinner <vstinner@python.org> | 2019-12-10 21:12:26 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-12-10 21:12:26 +0100 |
commit | c98b0199a984430312833ef403d265be314f7244 (patch) | |
tree | 5ed60fe7dab0a90dd08b51c54082f6a320fd0693 /Lib/test/test_asyncio/test_sslproto.py | |
parent | bbc8b7965bb9f46763c96878326966f4231c7d39 (diff) | |
download | cpython-c98b0199a984430312833ef403d265be314f7244.tar.gz cpython-c98b0199a984430312833ef403d265be314f7244.zip |
bpo-38614: Use test.support.LONG_TIMEOUT constant (GH-17562)
Replace hardcoded timeout constants in tests with LONG_TIMEOUT of
test.support, so it's easier to ajdust this timeout for all tests at
once.
LONG_TIMEOUT is 5 minutes by default, but it can be longer depending
on --timeout command line option.
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 7ba3d7361ad..8e9d4c5194f 100644 --- a/Lib/test/test_asyncio/test_sslproto.py +++ b/Lib/test/test_asyncio/test_sslproto.py @@ -16,6 +16,7 @@ import asyncio from asyncio import log from asyncio import protocols from asyncio import sslproto +from test import support from test.test_asyncio import utils as test_utils from test.test_asyncio import functional as func_tests @@ -163,7 +164,7 @@ class SslProtoHandshakeTests(test_utils.TestCase): class BaseStartTLS(func_tests.FunctionalTestCaseMixin): PAYLOAD_SIZE = 1024 * 100 - TIMEOUT = 60 + TIMEOUT = support.LONG_TIMEOUT def new_loop(self): raise NotImplementedError |