Skip to content
This repository was archived by the owner on Nov 2, 2022. It is now read-only.
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Explicitly declared the "slow" pytest marker
This should make the latest pytest happy.
  • Loading branch information
agronholm committed Jun 2, 2019
commit cdc87f53c24911f675197c8cbcb80ff5e0614998
4 changes: 4 additions & 0 deletions exceptiongroup/tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ def pytest_addoption(parser):
parser.addoption("--run-slow", action="store_true", help="run slow tests")


def pytest_configure(config):
config.addinivalue_line("markers", "slow: mark a time consuming test")


def pytest_collection_modifyitems(config, items):
if config.getoption("--run-slow", True):
# --runslow given in cli: do not skip slow tests
Expand Down