TST Replace pytest.warns(None) in test_discriminant_analysis.py
@@ -491,7 +491,6 @@ def test_lda_dimension_warning(n_classes, n_features):
for n_components in [max_components - 1, None, max_components]:
# if n_components <= min(n_classes - 1, n_features), no warning
lda = LinearDiscriminantAnalysis(n_components=n_components)
- with pytest.warns(None):
lda.fit(X, y)
for n_components in [max_components + 1, max(n_features, n_classes - 1) + 1]:
