()
| 114 | |
| 115 | |
| 116 | def test_popen_initializer(): |
| 117 | initargs = [1, 2, 3] |
| 118 | proc = PopenWorker(initializer=initializer, initargs=initargs) |
| 119 | proc.send(after_initializer) |
| 120 | test_global_state_1, test_global_state_2, test_global_state_3 = proc.recv() |
| 121 | assert test_global_state_1 == initargs[0] |
| 122 | assert test_global_state_2 == initargs[1] |
| 123 | assert test_global_state_3 == initargs[2] |
| 124 | |
| 125 | |
| 126 | def test_popen_worker_recycles_with_initializer(): |
no test coverage detected
searching dependent graphs…