Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
3 changes: 3 additions & 0 deletions conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,8 @@ def pytest_collection_modifyitems(config, items):
if "slow" in item.keywords:
item.add_marker(skip_slow)

if "ws" in item.fixturenames:
item.add_marker(pytest.mark.workerstate)


pytest_plugins = ["distributed.pytest_resourceleaks"]
1 change: 1 addition & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ markers =
ipython: marks tests as exercising IPython
gpu: marks tests we want to run on GPUs
leaking: ignore leaked resources; see pytest_resourceleaks.py for usage
workerstate: deterministic test for the worker state machine. Automatically applied to all tests that use the 'ws' fixture.

# pytest-timeout settings
# 'thread' kills off the whole test suite. 'signal' only kills the offending test.
Expand Down