MCPcopy Create free account
hub / github.com/apache/arrow / main

Function main

python/pyarrow/tests/pandas_threaded_import.py:34–40  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

32
33
34def 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
43if __name__ == "__main__":

Callers 1

Calls 2

listFunction · 0.85
mapMethod · 0.80

Tested by

no test coverage detected