We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 462694a commit 4408a25Copy full SHA for 4408a25
doc/conftest.py
@@ -1,6 +1,7 @@
1
import os
2
from os.path import exists
3
from os.path import join
4
+from os import environ
5
import warnings
6
7
from sklearn.utils import IS_PYPY
@@ -48,6 +49,12 @@ def setup_loading_other_datasets():
48
49
raise SkipTest("Skipping loading_other_datasets.rst, "
50
"pandas not installed")
51
52
+ # checks SKLEARN_SKIP_NETWORK_TESTS to see if test should run
53
+ run_network_tests = environ.get("SKLEARN_SKIP_NETWORK_TESTS", '1') == "0"
54
+ if not run_network_tests:
55
+ raise SkipTest("Skipping loading_other_datasets.rst, tests can be "
56
+ "enabled by settting SKLEARN_SKIP_NETWORK_TESTS=0")
57
+
58
59
def setup_compose():
60
try:
0 commit comments