Skip to content

Commit

Permalink
MAINT Define custom markers for pytest (scikit-learn#16652)
Browse files Browse the repository at this point in the history
  • Loading branch information
cmarmo committed Mar 23, 2020
1 parent 913da3f commit dcfb3df
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,11 @@ def pytest_collection_modifyitems(config, items):
def pytest_configure(config):
import sys
sys._is_pytest_session = True
# declare our custom markers to avoid PytestUnknownMarkWarning
config.addinivalue_line(
"markers",
"network: mark a test for execution if network available."
)


def pytest_unconfigure(config):
Expand Down

0 comments on commit dcfb3df

Please sign in to comment.