-
-
Notifications
You must be signed in to change notification settings - Fork 26k
MNT remove check for deprecated behavior in test.py #16109
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
@@ -1296,10 +1295,7 @@ def test_callable_analyzer_change_behavior(Estimator, analyzer, input_type): | |||
data = ['this is text, not file or filename'] | |||
warn_msg = 'Since v0.21, vectorizer' | |||
with pytest.raises((FileNotFoundError, AttributeError)): | |||
with pytest.warns(ChangedBehaviorWarning, match=warn_msg) as records: | |||
Estimator(analyzer=analyzer, input=input_type).fit_transform(data) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Estimator(analyzer=analyzer, input=input_type).fit_transform(data) | |
Estimator(analyzer=analyzer, input=input_type).fit_transform(data) |
@@ -1296,10 +1295,7 @@ def test_callable_analyzer_change_behavior(Estimator, analyzer, input_type): | |||
data = ['this is text, not file or filename'] | |||
warn_msg = 'Since v0.21, vectorizer' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
warn_msg
is not needed anymore
I pushed a fix for the last review comment, otherwise should be good. Merging, thanks! |
This PR removes the irrelevant parts of #13641