Skip to content

Preserve missing path errors with xdist#1354

Open
AleksZyro wants to merge 1 commit into
pytest-dev:masterfrom
AleksZyro:preserve-missing-path-error
Open

Preserve missing path errors with xdist#1354
AleksZyro wants to merge 1 commit into
pytest-dev:masterfrom
AleksZyro:preserve-missing-path-error

Conversation

@AleksZyro

Copy link
Copy Markdown

Fixes #109.

When xdist is active, collection is skipped in the controller process. That means pytest's normal missing path validation can be lost before workers start collecting.

This validates the initial collection arguments before starting distributed collection, preserving the usual file or directory not found error for missing paths.

  • Added a regression test.
  • Added a towncrier news fragment.

@AleksZyro
AleksZyro force-pushed the preserve-missing-path-error branch from d7b3f4b to 675473e Compare July 14, 2026 19:03
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.

xdist munges error message if a requested path does not exist

1 participant