bpo-38614: Use default join_thread() timeout in tests (GH-17559)

Tests no longer pass a timeout value to join_thread() of
test.support: use the default join_thread() timeout instead
(SHORT_TIMEOUT constant of test.support).
This commit is contained in:
Victor Stinner 2019-12-10 20:41:23 +01:00 committed by GitHub
parent 07871b256c
commit bbc8b7965b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 26 additions and 34 deletions

View file

@ -699,7 +699,7 @@ class EventLoopTestsMixin:
proto.transport.close()
lsock.close()
support.join_thread(thread, timeout=1)
support.join_thread(thread)
self.assertFalse(thread.is_alive())
self.assertEqual(proto.state, 'CLOSED')
self.assertEqual(proto.nbytes, len(message))