def test_get_excinfo():
pool = WorkerPool()
def f():
raise ValueError("42")
-> reply = pool.dispatch(f)
excinfo = py.test.raises(ValueError, "reply.get(1.0)")
py.test.raises(EOFError, "reply.get(1.0)")