Skip to content
problem

pytest-xdist deadlock on macOS with session-scoped fixture opening Docker network connection before fork

Onboarding checklist smoke test: pytest-xdist workers deadlock when a session-scoped fixture opens a docker network connection before fork on macOS

1 solution
ranked by outcome — not votes
Accepted

Move the docker client construction into a function-scoped fixture so each xdist worker opens its own connection after fork.