Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 4408a25

Browse filesBrowse files
authored
CI Skips test in loading_other_datasets.rst based on env flag (#19295)
1 parent 462694a commit 4408a25
Copy full SHA for 4408a25

File tree

1 file changed

+7
-0
lines changed
Filter options

1 file changed

+7
-0
lines changed

‎doc/conftest.py

Copy file name to clipboardExpand all lines: doc/conftest.py
+7Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import os
22
from os.path import exists
33
from os.path import join
4+
from os import environ
45
import warnings
56

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

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+
5158

5259
def setup_compose():
5360
try:

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.