()
| 42 | |
| 43 | |
| 44 | def 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 | |
| 62 | def test_popen_worker_reuses(): |
no test coverage detected
searching dependent graphs…