Commit 8beb55b
[iris] Address PR review: drop redundant _db.close, bump pytest, harden teardown
- Remove six vestigial controller._db.close() calls in test_checkpoint.py now
that the make_controller fixture stops the controller (which closes the DB)
at teardown. Each redundant close blocked for ~1s draining the read pool.
- Bump pytest>=8.4 in lib/iris dev deps so truncation_limit_lines/chars aren't
silently dropped on fresh resolves that pick 8.3.x.
- Make the make_controller teardown robust to per-controller stop() failures:
collect errors, stop every controller, then re-raise.
- Expand the make_controller docstring to cover db= / provider= injection.
- Alphabetize the iris.cluster.controller.* import block in conftest.py.
Co-authored-by: Russell Power <rjpower@users.noreply.github.com>1 parent 20d9d20 commit 8beb55b
4 files changed
Lines changed: 24 additions & 19 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
66 | | - | |
| 66 | + | |
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| 31 | + | |
| 32 | + | |
31 | 33 | | |
32 | 34 | | |
33 | 35 | | |
34 | 36 | | |
35 | 37 | | |
36 | 38 | | |
37 | 39 | | |
| 40 | + | |
38 | 41 | | |
39 | 42 | | |
40 | 43 | | |
| |||
47 | 50 | | |
48 | 51 | | |
49 | 52 | | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
| |||
213 | 213 | | |
214 | 214 | | |
215 | 215 | | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
216 | 221 | | |
217 | 222 | | |
218 | | - | |
| 223 | + | |
219 | 224 | | |
220 | | - | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
221 | 231 | | |
222 | 232 | | |
223 | 233 | | |
| |||
242 | 252 | | |
243 | 253 | | |
244 | 254 | | |
| 255 | + | |
245 | 256 | | |
246 | | - | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
247 | 263 | | |
248 | 264 | | |
249 | 265 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
35 | | - | |
36 | 34 | | |
37 | 35 | | |
38 | 36 | | |
| |||
44 | 42 | | |
45 | 43 | | |
46 | 44 | | |
47 | | - | |
48 | | - | |
49 | 45 | | |
50 | 46 | | |
51 | 47 | | |
| |||
59 | 55 | | |
60 | 56 | | |
61 | 57 | | |
62 | | - | |
63 | | - | |
64 | 58 | | |
65 | 59 | | |
66 | 60 | | |
| |||
101 | 95 | | |
102 | 96 | | |
103 | 97 | | |
104 | | - | |
105 | 98 | | |
106 | 99 | | |
107 | 100 | | |
| |||
123 | 116 | | |
124 | 117 | | |
125 | 118 | | |
126 | | - | |
127 | | - | |
128 | 119 | | |
129 | 120 | | |
130 | 121 | | |
| |||
213 | 204 | | |
214 | 205 | | |
215 | 206 | | |
216 | | - | |
217 | | - | |
218 | 207 | | |
219 | 208 | | |
220 | 209 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments