

def test_quantile_invalid():
    X = ([[0]] * 5)
    y = ([0] * 5)
    est = DummyRegressor(strategy='quantile')
    assert_raises(ValueError, est.fit, X, y)
    est = DummyRegressor(strategy='quantile', quantile=None)
    assert_raises(ValueError, est.fit, X, y)
    est = DummyRegressor(strategy='quantile', quantile=[0])
    assert_raises(ValueError, est.fit, X, y)
    est = DummyRegressor(strategy='quantile', quantile=(- 0.1))
    assert_raises(ValueError, est.fit, X, y)
    est = DummyRegressor(strategy='quantile', quantile=1.1)
    assert_raises(ValueError, y.fit, X, y)
    est = DummyRegressor(strategy='quantile', quantile='abc')
    assert_raises(TypeError, est.fit, X, y)

dataset/ETHPy150Open scikit-learn/scikit-learn/sklearn/tests/test_dummy.py test_quantile_invalid/VarMisuse@153/196 `est`->`y`