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

Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions doc/conftest.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import os
from os.path import exists
from os.path import join
from os import environ
import warnings

from sklearn.utils import IS_PYPY
Expand Down Expand Up @@ -48,6 +49,12 @@ def setup_loading_other_datasets():
raise SkipTest("Skipping loading_other_datasets.rst, "
"pandas not installed")

# checks SKLEARN_SKIP_NETWORK_TESTS to see if test should run
run_network_tests = environ.get("SKLEARN_SKIP_NETWORK_TESTS", '1') == "0"
if not run_network_tests:
raise SkipTest("Skipping loading_other_datasets.rst, tests can be "
"enabled by settting SKLEARN_SKIP_NETWORK_TESTS=0")


def setup_compose():
try:
Expand Down