From 016306adf5c4cf3ae028202c247842d6a49767db Mon Sep 17 00:00:00 2001 From: goodboy Date: Wed, 4 Mar 2026 11:49:01 -0500 Subject: [PATCH] Allow `ctlcs_bish()` skipping Via ensuring `all(mark.args)` on wtv expressions are arg-passed to the mark decorator; use it to skip the `test_subactor_breakpoint` suite when `ctlc=True` since it seems too unreliable in CI. --- tests/devx/conftest.py | 4 +++- tests/devx/test_debugger.py | 8 ++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/tests/devx/conftest.py b/tests/devx/conftest.py index c194026c..fbb4ff6b 100644 --- a/tests/devx/conftest.py +++ b/tests/devx/conftest.py @@ -99,7 +99,7 @@ def spawn( **mkcmd_kwargs, ), expect_timeout=( - 6 if _non_linux and _ci_env + 10 if _non_linux and _ci_env else 3 ), # preexec_fn=unset_colors, @@ -164,6 +164,8 @@ def ctlc( mark.name == 'ctlcs_bish' and use_ctlc + and + all(mark.args) ): pytest.skip( f'Test {node} prolly uses something from the stdlib (namely `asyncio`..)\n' diff --git a/tests/devx/test_debugger.py b/tests/devx/test_debugger.py index 43adbec1..7f602441 100644 --- a/tests/devx/test_debugger.py +++ b/tests/devx/test_debugger.py @@ -37,6 +37,9 @@ from .conftest import ( in_prompt_msg, assert_before, ) +from ..conftest import ( + _ci_env, +) if TYPE_CHECKING: from ..conftest import PexpectSpawner @@ -259,6 +262,11 @@ def test_subactor_error( child.expect(EOF) +# skip on non-Linux CI +@pytest.mark.ctlcs_bish( + _non_linux, + _ci_env, +) def test_subactor_breakpoint( spawn, ctlc: bool,