Skip to content

Commit 97332b4

Browse files
committed
Automatically mark all WorkerState tests
1 parent 6765e6e commit 97332b4

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

conftest.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,5 +35,8 @@ def pytest_collection_modifyitems(config, items):
3535
if "slow" in item.keywords:
3636
item.add_marker(skip_slow)
3737

38+
if "ws" in item.fixturenames:
39+
item.add_marker(pytest.mark.workerstate)
40+
3841

3942
pytest_plugins = ["distributed.pytest_resourceleaks"]

setup.cfg

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ markers =
9696
ipython: marks tests as exercising IPython
9797
gpu: marks tests we want to run on GPUs
9898
leaking: ignore leaked resources; see pytest_resourceleaks.py for usage
99+
workerstate: deterministic test for the worker state machine. Automatically applied to all tests that use the 'ws' fixture.
99100
100101
# pytest-timeout settings
101102
# 'thread' kills off the whole test suite. 'signal' only kills the offending test.

0 commit comments

Comments
 (0)