def test_fault_midstream():
    pool = make_pool(1, 1)

    # Set up upload doomed to fail.
    tpart = FakeTarPartition(1, explosive=Explosion('Boom'))
    pool.put(tpart)

    # Try to receive the error through adding another upload.
    tpart = FakeTarPartition(1)
    with pytest.raises(Explosion):
        pool.put(tpart)
Test if a previous upload fault is detected in calling .put.
dataset/ETHPy150Open wal-e/wal-e/tests/test_tar_upload_pool.py/test_fault_midstream