def METHOD_NAME(setup):
    # This is a non-regression test for #5774
    X = np.array([[1.0, 0.0], [0.0, 1.0], [1.0, 2.5]])
    y = np.array([0, 1, -1])
    mdl = LabelPropagation(kernel="rbf", max_iter=1)
    with pytest.warns(ConvergenceWarning):
        mdl.fit(X, y)
    assert mdl.n_iter_ == mdl.max_iter
    mdl = LabelPropagation(kernel="rbf", max_iter=500)
    assert_no_warnings(mdl.fit, X, y)