Skip to content

Commit dcfb3df

Browse files
authored
MAINT Define custom markers for pytest (scikit-learn#16652)
1 parent 913da3f commit dcfb3df

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

conftest.py

+5
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,11 @@ def pytest_collection_modifyitems(config, items):
8787
def pytest_configure(config):
8888
import sys
8989
sys._is_pytest_session = True
90+
# declare our custom markers to avoid PytestUnknownMarkWarning
91+
config.addinivalue_line(
92+
"markers",
93+
"network: mark a test for execution if network available."
94+
)
9095

9196

9297
def pytest_unconfigure(config):

0 commit comments

Comments
 (0)