Skip to content

Run pytest in parallel (pytest-xdist) (closes #467)#514

Merged
FidoCanCode merged 1 commit into
mainfrom
run-pytest-parallel
Apr 14, 2026
Merged

Run pytest in parallel (pytest-xdist) (closes #467)#514
FidoCanCode merged 1 commit into
mainfrom
run-pytest-parallel

Conversation

@FidoCanCode
Copy link
Copy Markdown
Owner

@FidoCanCode FidoCanCode commented Apr 14, 2026

Fixes #467.

pytest-xdist and -n auto were already added in #475 — this PR fixes the last slow-test pattern by adding poll_interval=0.01 to _make_unregistered_server, which was blocking 0.5s per test on shutdown. Shaves ~1s off wall time and closes out the parallel-pytest work.


Work queue

Completed (1)
  • Use fast poll_interval in _make_unregistered_server test helper

Matches the pattern already used by the other test server helpers
(lines 117 and 2163), cutting ~0.5s of shutdown blocking per test.

Closes #467.
@FidoCanCode FidoCanCode force-pushed the run-pytest-parallel branch from 70dc4c8 to 7bec6d7 Compare April 14, 2026 23:23
@FidoCanCode FidoCanCode marked this pull request as ready for review April 14, 2026 23:23
@FidoCanCode FidoCanCode requested a review from rhencke April 14, 2026 23:23
@FidoCanCode FidoCanCode merged commit 66f9fab into main Apr 14, 2026
3 checks passed
@FidoCanCode FidoCanCode deleted the run-pytest-parallel branch April 14, 2026 23:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Run pytest in parallel (pytest-xdist)

2 participants