79 |
80 |
81 |
82 |
83 |
84 |
85 |
86 |
87 |
88 |
89 |
90 |
91 |
92 |
93 | |
def test_pool_clean_shutdown(): |
capture = py.io.StdCaptureFD() |
pool = WorkerPool() |
def f(): |
pass |
pool.dispatch(f) |
pool.dispatch(f) |
pool.shutdown() |
-> pool.join(timeout=1.0) |
assert not pool._alive |
assert not pool._ready |
out, err = capture.reset() |
print out |
print >>sys.stderr, err |
assert err == '' | |