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

Function test_popen_pool_executor_timeout

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

Source from the content-addressed store, hash-verified

165
166
167def 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
181def test_popen_pool_executor_recycles():

Callers 1

test_popen_pool.pyFile · 0.85

Calls 4

submitMethod · 0.95
PopenPoolExecutorClass · 0.90
doneMethod · 0.45
resultMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…