def test_error_when_using_regression_score_on_classification_data(self): data = Table('wine') s = SelectBestFeatures(method=UnivariateLinearRegression(), k=3) with self.assertRaises(ValueError): s(data)