Commit 9347fb8
Fix _reset_conn_state to handle None db_config
When finalizer() sets connections._db_config = None and another test
runs on the same worker (with pytest-xdist), _reset_conn_state() would
fail because it tried to call .clear() on None.
This fix checks if _db_config is not None before clearing it.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>1 parent 6dcc871 commit 9347fb8
1 file changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
271 | 271 | | |
272 | 272 | | |
273 | 273 | | |
274 | | - | |
| 274 | + | |
| 275 | + | |
275 | 276 | | |
276 | 277 | | |
277 | 278 | | |
| |||
0 commit comments