Join a thread within timeout. Raise an AssertionError if thread is still alive after timeout seconds.
test.support.threading_helper/join_thread
join_thread