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

Function test_popen_worker

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

Source from the content-addressed store, hash-verified

42
43
44def test_popen_worker():
45 proc = PopenWorker()
46
47 with pytest.raises(TimeoutError):
48 proc.send(identity_after, [1, 100], timeout=0.01)
49 proc.recv()
50
51 with pytest.raises(ChildProcessError):
52 proc.send(terminate_self)
53 proc.recv()
54
55 proc.send(identity_after, [2, 0])
56 assert proc.recv() == 2
57
58 proc.send(identity_after, [4, 0.0001])
59 assert proc.recv() == 4
60
61
62def test_popen_worker_reuses():

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…