(self)
| 298 | raise error |
| 299 | |
| 300 | def test_join_with_timeout(self): |
| 301 | lock = thread.allocate_lock() |
| 302 | lock.acquire() |
| 303 | |
| 304 | def thr(): |
| 305 | lock.acquire() |
| 306 | |
| 307 | with threading_helper.wait_threads_exit(): |
| 308 | handle = thread.start_joinable_thread(thr) |
| 309 | handle.join(0.1) |
| 310 | self.assertFalse(handle.is_done()) |
| 311 | lock.release() |
| 312 | handle.join() |
| 313 | self.assertTrue(handle.is_done()) |
| 314 | |
| 315 | def test_join_unstarted(self): |
| 316 | handle = thread._ThreadHandle() |
nothing calls this directly
no test coverage detected