mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
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.
This commit is contained in:
parent
680068c288
commit
07871b256c
10 changed files with 71 additions and 42 deletions
|
@ -724,7 +724,7 @@ class EventLoopTestsMixin:
|
|||
sock = socket.socket()
|
||||
self.addCleanup(sock.close)
|
||||
coro = self.loop.connect_accepted_socket(
|
||||
MyProto, sock, ssl_handshake_timeout=1)
|
||||
MyProto, sock, ssl_handshake_timeout=support.LOOPBACK_TIMEOUT)
|
||||
with self.assertRaisesRegex(
|
||||
ValueError,
|
||||
'ssl_handshake_timeout is only meaningful with ssl'):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue