Mark the retired-loop polling sleep in the Lambda test as timing-dependent coverage

Merged
DO
2mo ago
+1-1

The main coverage run failed because strict-no-cover observed the retired-loop polling sleep despite its plain pragma: no cover marker. Whether the sleep runs depends on scheduling.

This changes that marker to pragma: lax no cover, matching the other timing-dependent polling paths in the same test file while keeping the existing explanation.

Verification:

  • uv run pytest tests/harness/aws_lambda -q — 91 passed, 2 skipped
  • SKIP=typecheck pre-commit run --files tests/harness/aws_lambda/test_aws_lambda.py — passed
  • PYRIGHT_PYTHON_IGNORE_WARNINGS=1 uv run pyright tests/harness/aws_lambda/test_aws_lambda.py — passed

Part of #8898

Checklist

  • No breaking changes in accordance with the version policy.
  • Any permitted compatibility impact has a label, warning, migration, release note, and exact API-check waiver.
  • PR title is fit for the release changelog.

šŸ¤– Generated with Claude Code

https://claude.ai/code/session_01E2vP6G2QaFiPBkfY2vQBW8