def METHOD_NAME():
    """
    When one of the requests in a RequestPool fails,
    the exception should be propagated back to the caller of RequestPool.wait()
    """
    class ExpectedException(Exception):
        pass
    l = []
    pool = RequestPool()
    def workload(index):
        if index == 9:
            raise ExpectedException("Intentionally failed request.")
        l.append(index)
    for i in range(10):
        pool.add(Request(partial(workload, i)))
    try:
        pool.wait()
    except ExpectedException:
        pass
    else:
        assert False, "Expected the pool to fail.  Why didn't it?"
    time.sleep(0.2)