Commit 33b53e4
committed
test: restore global logging state in configure_logging test
configure_logging() applies logging.conf, which mutates process-global
logging state (replaces the pyensembl logger's NullHandler with a live
console handler and reconfigures root). Snapshot and restore that state in
test_configure_logging_preserves_existing_loggers so it doesn't leak a
console handler into sibling tests running in the same worker.
Claude-Session: https://claude.ai/code/session_016pKPSmCAts4cacC3CQ9qsL1 parent 21d1751 commit 33b53e4
1 file changed
Lines changed: 21 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
123 | 123 | | |
124 | 124 | | |
125 | 125 | | |
126 | | - | |
127 | | - | |
128 | | - | |
129 | | - | |
130 | | - | |
131 | | - | |
132 | | - | |
133 | | - | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
0 commit comments