()
| 32 | |
| 33 | |
| 34 | def main(): |
| 35 | # In case of import deadlock, crash after a finite timeout |
| 36 | faulthandler.dump_traceback_later(timeout, exit=True) |
| 37 | with ThreadPoolExecutor(num_threads) as pool: |
| 38 | assert "pandas" not in sys.modules # pandas is imported lazily |
| 39 | list(pool.map(thread_func, range(num_threads))) |
| 40 | assert "pandas" in sys.modules |
| 41 | |
| 42 | |
| 43 | if __name__ == "__main__": |
no test coverage detected