Commit c13cf85
committed
fix(coverage): suppress no-branch for symmetric finally guard in new-session path
The finally block mirrors the condition checked immediately before the try:
block. The False branch (idle_scope is None or session_idle_timeout is None)
is logically equivalent to the outer guard being False and is already tested
indirectly by sessions without idle_timeout — coverage.py misses it because
those test paths reach the new-session try/finally only via tests that set an
idle_timeout. Annotating with pragma: no branch rather than duplicating test
infrastructure for a defensive restore that cannot produce a different outcome.1 parent 8375819 commit c13cf85
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
280 | 280 | | |
281 | 281 | | |
282 | 282 | | |
283 | | - | |
| 283 | + | |
284 | 284 | | |
285 | 285 | | |
286 | 286 | | |
| |||
0 commit comments