Commit e7c0303
committed
tests: replace asyncio.timeout(0) with await + suppress(CancelledError)
asyncio.timeout is 3.11+. After task.cancel(), awaiting the task raises
CancelledError once cancellation propagates; suppressing it is equivalent
to the previous TimeoutError-via-timeout(0) idiom and works on 3.10.1 parent 1847b9e commit e7c0303
1 file changed
Lines changed: 2 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
57 | | - | |
58 | | - | |
59 | | - | |
| 57 | + | |
| 58 | + | |
60 | 59 | | |
61 | 60 | | |
62 | 61 | | |
| |||
0 commit comments