Session-scoped fixture connection pool teardown ordering during pytest-xdist worker shutdown
Session-scoped fixtures in pytest create a separate connection pool per xdist worker process. The goal is to ensure these pools are reliably disposed when workers exit, whether through normal completion, --maxfail , timeout, or crash. However, each worker runs its own pytest session, so fixture finalization follows a per-process LIFO stack with no cross-work