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

Function test_popen_worker_recycles

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

Source from the content-addressed store, hash-verified

70
71
72def test_popen_worker_recycles():
73 proc = PopenWorker(maximum_uses=2)
74
75 proc.send(os.getpid)
76 initial_pid = proc.recv()
77 assert psutil.pid_exists(initial_pid)
78
79 proc.send(os.getpid)
80 assert proc.recv() == initial_pid
81 assert psutil.pid_exists(initial_pid)
82
83 proc.send(os.getpid)
84 assert proc.recv() != initial_pid
85 assert not psutil.pid_exists(initial_pid)
86
87
88def test_popen_pool_executor():

Callers 1

test_popen_pool.pyFile · 0.85

Calls 3

sendMethod · 0.95
recvMethod · 0.95
PopenWorkerClass · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…