Commit d3bdc5c
committed
fix(tests): add pragma no branch to fix coverage false positive
The suppressing_handler in test_custom_message_handler_can_suppress_exceptions
only ever receives Exception messages in the test, so coverage.py reports
the False branch (792->exit) as uncovered. This is a known coverage.py
quirk with async functions where one branch path is never taken by design.
Adding # pragma: no branch restores 100% coverage.
Github-Issue: #14011 parent 134bae3 commit d3bdc5c
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
789 | 789 | | |
790 | 790 | | |
791 | 791 | | |
792 | | - | |
| 792 | + | |
793 | 793 | | |
794 | 794 | | |
795 | 795 | | |
| |||
0 commit comments