Commit 6b5db05
test(screenshot): avoid bare await statements in the guard tests
CodeQL's py/ineffectual-statement flagged `await pending` and `await task`
as statements with no effect: it does not model an await of a bare name as
side-effecting, only an await of a call. Both now bind or assert on the
result, which is also a stronger test -- take_snapshot returning None is
asserted rather than assumed.
This is the CodeQL Code Quality (python) gate failure on the previous head.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012Nm7tyA1nfxNCWFXaR3AxV1 parent 39c05a1 commit 6b5db05
1 file changed
Lines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
538 | 538 | | |
539 | 539 | | |
540 | 540 | | |
541 | | - | |
| 541 | + | |
| 542 | + | |
| 543 | + | |
542 | 544 | | |
543 | 545 | | |
544 | 546 | | |
| |||
602 | 604 | | |
603 | 605 | | |
604 | 606 | | |
605 | | - | |
| 607 | + | |
606 | 608 | | |
607 | 609 | | |
608 | 610 | | |
| |||
0 commit comments