def METHOD_NAME():
    pipeline = TestPipeline([])
    def p1(ctx: List[str]):
        ctx.append("p1")
        yield
        ctx.append("p1-bis")
    def p2(ctx: List[str]):
        raise ValueError("nope")
    with pytest.raises(PluginError):
        pipeline.run([p1, p2])
    assert pipeline.ctx == ["p1"]