test(ci): drop the structure-only assertion on the shard script; the parametrized hang test covers both invocations

This commit is contained in:
mateo-berri 2026-09-19 03:20:48 -07:00
parent 343e1eeac8
commit 4968e89f3c

View file

@ -58,10 +58,6 @@ def _hang_guard_args(invocation: tuple[str, ...]) -> tuple[str, ...]:
_INVOCATIONS: Final = _pytest_invocations(_run_tests_script())
def test_the_shard_script_runs_pytest_serially_and_under_xdist() -> None:
assert sorted("-n" in invocation for invocation in _INVOCATIONS) == [False, True]
@pytest.mark.parametrize(
"invocation", _INVOCATIONS, ids=tuple("xdist" if "-n" in invocation else "serial" for invocation in _INVOCATIONS)
)