MCPcopy Index your code
hub / github.com/apache/tvm / test_popen_pool_executor_recycles

Function test_popen_pool_executor_recycles

tests/python/support/test_popen_pool.py:181–186  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

179
180
181def test_popen_pool_executor_recycles():
182 pool = PopenPoolExecutor(max_workers=1, timeout=None, maximum_process_uses=2)
183
184 initial_pid = pool.submit(os.getpid).result()
185 assert initial_pid == pool.submit(os.getpid).result()
186 assert initial_pid != pool.submit(os.getpid).result()
187
188
189if __name__ == "__main__":

Callers 1

test_popen_pool.pyFile · 0.85

Calls 3

submitMethod · 0.95
PopenPoolExecutorClass · 0.90
resultMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…