Commit 8cfdd44
committed
Restructure list_roots deprecation test to cover its branches on 3.14
The `with anyio.fail_after(...)` block was the last statement in the test and
nested inside `pytest.warns`, so coverage.py flagged its `->exit` arc as a
partial branch on 3.14. Move `fail_after` to the outer `with` and add a trailing
assertion (the call reached the wire), matching the sibling `list_roots` tests.1 parent a465678 commit 8cfdd44
1 file changed
Lines changed: 5 additions & 2 deletions
File tree
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
150 | 150 | | |
151 | 151 | | |
152 | 152 | | |
153 | | - | |
154 | | - | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
155 | 157 | | |
| 158 | + | |
156 | 159 | | |
157 | 160 | | |
158 | 161 | | |
| |||
0 commit comments