forked from scikit-learn/scikit-learn
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request scikit-learn#3333 from ogrisel/maint-skip-download…
…-tests [MRG+2] MAINT skip tests that require large data download under travis
- Loading branch information
Showing
3 changed files
with
29 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
15 changes: 15 additions & 0 deletions
15
doc/tutorial/text_analytics/working_with_text_data_fixture.py
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
"""Fixture module to skip the datasets loading when offline | ||
The 20 newsgroups data is rather large and some CI workers such as travis are | ||
stateless hence will not cache the dataset as regular sklearn users would do. | ||
The following will skip the execution of the working_with_text_data.rst doctests | ||
is the proper environment variable is configured (see the source code of | ||
check_skip_network for more details). | ||
""" | ||
from sklearn.utils.testing import check_skip_network | ||
|
||
|
||
def setup_module(): | ||
check_skip_network() |
This file contains 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