[SYNPY-1906] old version of pytest-xdist is incompatible with the new pytest 9.0.3 - #1442
Merged
Conversation
linglp
marked this pull request as ready for review
August 12, 2026 06:59
Contributor
There was a problem hiding this comment.
Pull request overview
This PR updates the project’s test dependency set to resolve a CI failure caused by an older pytest-xdist release being incompatible with pytest 9.0.3, eliminating the legacy pytest-forked → py dependency chain that triggered ModuleNotFoundError: No module named 'py.log' in CI.
Changes:
- Bump
pytest-xdist[psutil]constraint insetup.cfgto>=3.6.0,<4.0for test/dev extras. - Re-lock dependencies in
Pipfile.lock, updatingpytest-xdistto3.8.0and removingpytest-forked/pyfrom the lock.
Reviewed changes
Copilot reviewed 1 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| setup.cfg | Updates pytest-xdist[psutil] version constraints in test/dev extras to versions compatible with pytest 9.0.3. |
| Pipfile.lock | Refreshes the lockfile to pick up pytest-xdist 3.8.0 and drop the legacy py/pytest-forked chain. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
andrewelamb
approved these changes
Aug 12, 2026
BryanFauble
approved these changes
Aug 12, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem:
After this PR here: #1441, I noticed CI failure here:
This happened because pytest depends on
pytest-xdist, andpytest-xdistdepends onpytest-forked, andpytest-forkeddepends onpy, and after I updated pytest to9.0.3, it is no longer compatible with the oldpytest-xdist:Also based on the information here and here, it seems like
pypackage is a legacy package that is in maintainance mode.Solution:
Based on the changelog here, we could update
pytest-xdistto a version3.0.2and higher.