Commit 4123ab5
Make test_hist_file_config teardown deterministic
The test created a HistoryManager backed by a real file but never
stopped its HistorySavingThread. The thread briefly holds a strong
reference to the manager inside its polling loop, so the instance
could survive the gc.collect() in the hmmax fixture teardown,
making the instance-leak assertion fail intermittently.
Stop the saving thread and close the database like the other tests
in this file do, and drop the unreachable `HistoryManager.__max_inst`
assignment that name-mangling never applied anyway.
Fixes #15161
https://claude.ai/code/session_01AtmUVnQwZfjDBuUzF7TdGh1 parent d073772 commit 4123ab5
1 file changed
Lines changed: 8 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
263 | 263 | | |
264 | 264 | | |
265 | 265 | | |
| 266 | + | |
266 | 267 | | |
267 | 268 | | |
268 | 269 | | |
269 | 270 | | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
270 | 278 | | |
271 | 279 | | |
272 | 280 | | |
273 | 281 | | |
274 | 282 | | |
275 | 283 | | |
276 | 284 | | |
277 | | - | |
278 | 285 | | |
279 | 286 | | |
280 | 287 | | |
| |||
0 commit comments