Commit 83995e4
Add test for pool release overflow path (coverage lines 107-110)
Add test_pool_release_overflow_disconnects_outside_mutex to exercise the
ConnectionPool::release() overflow path where a connection is returned to
a pool that is already at max_size. This triggers the should_disconnect
branch that disconnects outside the mutex.
The disconnect-without-GIL path (connection.cpp lines 160-161) is a C++
destructor safety guard only reachable during interpreter shutdown when
the last shared_ptr drops without the GIL held. This cannot be reliably
exercised from a Python test since __del__/GC always holds the GIL.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent 47c61cf commit 83995e4
1 file changed
+29
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
278 | 278 | | |
279 | 279 | | |
280 | 280 | | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
281 | 310 | | |
282 | 311 | | |
283 | 312 | | |
| |||
0 commit comments