Allow `ctlcs_bish(<condition-args>)` 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.
ns_aware
Gud Boi 2026-03-04 11:49:01 -05:00
parent 712c009790
commit 016306adf5
2 changed files with 11 additions and 1 deletions

View File

@ -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'

View File

@ -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,