()
| 165 | |
| 166 | |
| 167 | def test_popen_pool_executor_timeout(): |
| 168 | timeout = 0.5 |
| 169 | |
| 170 | pool = PopenPoolExecutor(timeout=timeout) |
| 171 | |
| 172 | f1 = pool.submit(timeout_job, timeout) |
| 173 | while not f1.done(): |
| 174 | pass |
| 175 | try: |
| 176 | res = f1.result() |
| 177 | except Exception as ex: |
| 178 | assert isinstance(ex, TimeoutError) |
| 179 | |
| 180 | |
| 181 | def test_popen_pool_executor_recycles(): |
no test coverage detected
searching dependent graphs…