-
-
Notifications
You must be signed in to change notification settings - Fork 25.8k
BUG: for several datasets, download_if_missing
keyword was ignored.
#7944
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
LGTM but can you look why CIs are not happy? |
08b8c82
to
d8d4b37
Compare
A combination of me being asleep and running the tests for the wrong version of |
if e.errno == errno.ENOENT: | ||
raise SkipTest("Covertype dataset can not be loaded.") | ||
except IOError: | ||
raise SkipTest("Covertype dataset can not be loaded.") |
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.
@agramfort I know it's an old code but why use a SkipTest
rather than an assert_raise_message
?
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.
We don't know whether the call will succeed, right?
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.
Of course. Thanks for the clarification and sorry for the misunderstanding @amueller.
LGTM despite the |
regression test would be checking that we get an IOError if the file does not exist, right? Might be a bit overkill? Otherwise LGTM. |
LGTM |
uh that needs a whatsnew. Anyone wanna have a go? |
You mean a mention under "bug fixes" in |
indeed. Thanks :) |
Do what is promised in the docstring (raise an
IOError
), ifdownload_if_missing=False
and the dataset wasn't previously downloaded.