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/utils.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/utils.py')
-rw-r--r-- | Lib/test/test_asyncio/utils.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_asyncio/utils.py b/Lib/test/test_asyncio/utils.py index ea608f4a10c..6d8a6e2ac13 100644 --- a/Lib/test/test_asyncio/utils.py +++ b/Lib/test/test_asyncio/utils.py @@ -139,7 +139,7 @@ class SilentWSGIRequestHandler(WSGIRequestHandler): class SilentWSGIServer(WSGIServer): - request_timeout = 2 + request_timeout = support.LOOPBACK_TIMEOUT def get_request(self): request, client_addr = super().get_request() @@ -220,7 +220,7 @@ if hasattr(socket, 'AF_UNIX'): class UnixWSGIServer(UnixHTTPServer, WSGIServer): - request_timeout = 2 + request_timeout = support.LOOPBACK_TIMEOUT def server_bind(self): UnixHTTPServer.server_bind(self) |