[MRG] warning class should be passed to ignore_warnings as the category parameter.#11594
Closed
lesteve wants to merge 1 commit intoscikit-learn:masterfrom
Closed
[MRG] warning class should be passed to ignore_warnings as the category parameter.#11594lesteve wants to merge 1 commit intoscikit-learn:masterfrom
lesteve wants to merge 1 commit intoscikit-learn:masterfrom
Conversation
The first argument is the test callable. Doing it like this cause the test function to not be called
Member
|
Wow, thanks for catching this! Maybe add, to |
Contributor
|
isn't this tested? |
Member
|
.. and a test, it doesn't seem to be tested @massich as far as I can tell |
Member
Author
|
I opened #11599 to tackle this. |
Member
Author
|
Closing in favour of #11599. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
I found this one while commenting in #11580 (comment):
This is a slightly dangerous caveat of ignore_warnings: if you pass the warning class as the first argument, then the test is not run:
The reason is that the first argument is the test callable. Maybe that could be fixed not sure.