Thanks to visit codestin.com
Credit goes to github.com

Skip to content

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

Merged
merged 3 commits into from
Jan 24, 2020

Conversation

adrinjalali
Copy link
Member

This PR removes the irrelevant parts of #13641

Copy link
Member

@rth rth left a 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)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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'
Copy link
Member

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

@rth
Copy link
Member

rth commented Jan 24, 2020

I pushed a fix for the last review comment, otherwise should be good. Merging, thanks!

@rth rth merged commit 5c36df6 into scikit-learn:master Jan 24, 2020
thomasjpfan pushed a commit to thomasjpfan/scikit-learn that referenced this pull request Feb 22, 2020
panpiort8 pushed a commit to panpiort8/scikit-learn that referenced this pull request Mar 3, 2020
@adrinjalali adrinjalali deleted the 23-deprecations-2 branch April 27, 2020 18:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants