8000 FIX remove pytest warning in dataset/tests/test_common.py (#17828) · jayzed82/scikit-learn@6779794 · GitHub
[go: up one dir, main page]

Skip to content

Commit 6779794

Browse files
glemaitrethomasjpfan
authored andcommitted
FIX remove pytest warning in dataset/tests/test_common.py (scikit-learn#17828)
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
1 parent eecc2b4 commit 6779794

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

sklearn/datasets/tests/test_common.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,8 @@ def _generate_func_supporting_param(param, dataset_type=("load", "fetch")):
9494
condition=name.startswith("fetch") and _has_network(),
9595
reason="Skip because fetcher requires internet network",
9696
)]
97-
marks.append(markers_fetch.get(name, pytest.mark.basic))
97+
if name in markers_fetch:
98+
marks.append(markers_fetch[name])
9899

99100
yield pytest.param(name, obj, marks=marks)
100101

0 commit comments

Comments
 (0)
0