From e1039b4d8661c989ff98d694e24f16431d0026ba Mon Sep 17 00:00:00 2001 From: goodboy Date: Thu, 25 Jun 2026 17:32:54 -0400 Subject: [PATCH] Register `has_nested_actors`/`trio` pytest marks `config.addinivalue_line('markers', ...)` the two custom marks the suite uses but never registered, silencing `PytestUnknownMarkWarning` (e.g. `test_debugger.py`'s `has_nested_actors`). Registering in-code (vs a `pyproject` `markers=` block) keeps the mark + its doc next to the rest of the harness config. (this patch was generated in some part by [`claude-code`][claude-code-gh]) [claude-code-gh]: https://github.com/anthropics/claude-code --- tractor/_testing/pytest.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tractor/_testing/pytest.py b/tractor/_testing/pytest.py index 0b2cc6f6..90b0ae67 100644 --- a/tractor/_testing/pytest.py +++ b/tractor/_testing/pytest.py @@ -491,6 +491,16 @@ def pytest_configure( 'cases (e.g. the `subint` GIL-starvation class documented ' 'in `ai/conc-anal/subint_sigint_starvation_issue.md`).' ) + config.addinivalue_line( + 'markers', + 'has_nested_actors: test spawns nested (>1-level) subactor ' + 'trees.' + ) + config.addinivalue_line( + 'markers', + 'trio: legacy mark for tests meant to run under the `trio` ' + 'spawn backend (e.g. `test_local.py`).' + ) # `--enable-stackscope`: install SIGUSR1 → trio task-tree # dump in pytest itself + propagate to every subactor via