mirror of
https://github.com/python/cpython.git
synced 2025-10-08 16:11:51 +00:00
bpo-31234: Add support.join_thread() helper (#3587)
join_thread() joins a thread but raises an AssertionError if the thread is still alive after timeout seconds.
This commit is contained in:
parent
167cbde50a
commit
b9b69003d9
9 changed files with 50 additions and 65 deletions
|
@ -220,7 +220,9 @@ class NewIMAPTestsMixin():
|
|||
# cleanup the server
|
||||
self.server.shutdown()
|
||||
self.server.server_close()
|
||||
self.thread.join(3.0)
|
||||
support.join_thread(self.thread, 3.0)
|
||||
# Explicitly clear the attribute to prevent dangling thread
|
||||
self.thread = None
|
||||
|
||||
def test_EOF_without_complete_welcome_message(self):
|
||||
# http://bugs.python.org/issue5949
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue