10000 [MRG] skip dataset downloading doctest by aozgaa · Pull Request #11284 · scikit-learn/scikit-learn · GitHub
[go: up one dir, main page]

Skip to content

[MRG] skip dataset downloading doctest #11284

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

Conversation

aozgaa
Copy link
Contributor
@aozgaa aozgaa commented Jun 15, 2018

Reference Issues/PRs

Fixes #4732

What does this implement/fix? Explain your changes.

Skips downloading the 20news dataset for the working_with_text_data.rst doctest.

doc/conftest.py Outdated
@@ -47,12 +47,14 @@ def setup_rcv1():

def setup_twenty_newsgroups():
data_home = get_data_home()
if not exists(join(data_home, '20news_home')):
if not exists(join(data_home, "20news-bydate_py3.pkz")):
Copy link
Member

Choose a reason for hiding this comment

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

is this python3 specific? Maybe the easiest way would be to try and load it and catch the except?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Changed to use the pickle filepath specific to the python version of the test runner.

@aozgaa aozgaa force-pushed the dev/aozgaa/skipDownloadingDocTests branch from 74bf243 to f6cf3d0 Compare June 15, 2018 17:56
@amueller
Copy link
Member

looks good, let's see what travis says

@amueller amueller changed the title skip dataset downloading doctest [MRG] skip dataset downloading doctest Jun 15, 2018
@aozgaa
Copy link
Contributor Author
aozgaa commented Jun 15, 2018

Thanks @amueller, @ehashman, and @tsopenlin for the help!

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.

Doctests download datasets
3 participants
0