Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pytest-xdist newer version 1.22.4 seems to be broken #3724

Closed
cauvery opened this issue Jul 27, 2018 · 4 comments
Closed

pytest-xdist newer version 1.22.4 seems to be broken #3724

cauvery opened this issue Jul 27, 2018 · 4 comments
Labels
type: bug problem that needs to be addressed type: question general question, might be closed after 2 weeks of inactivity

Comments

@cauvery
Copy link

cauvery commented Jul 27, 2018

I am seeing below error all of a sudden, nothing changed from my last run. Suspected if that is caused by pytest-xdist newer version 1.22.4
_pytest.vendored_packages.pluggy.PluginValidationError: Plugin 'xdist' could not be loaded:

pytest-xdist = 1.22.4
python 2.7

Thank you,
Cauvery

@pytestbot pytestbot added the type: question general question, might be closed after 2 weeks of inactivity label Jul 27, 2018
@cauvery cauvery changed the title pytest-xdist newer version 1.22.4 seems to break pytest-xdist newer version 1.22.4 seems to be broken Jul 27, 2018
@pytestbot
Copy link
Contributor

GitMate.io thinks possibly related issues are #340 (xdist breaks inspect.stack()), #707 (pytest-xdist regression since execnet 1.3.0), #734 (Release pytest-xdist), #1980 (.), and #2851 (..).

@pytestbot pytestbot added the type: bug problem that needs to be addressed label Jul 27, 2018
@nicoddemus
Copy link
Member

Hi @cauvery,

Sorry to hear about that, could you please post the full output?

@cauvery
Copy link
Author

cauvery commented Jul 27, 2018

The issue occurred with pytest-xdist=1.22.4 and pytest=3.2.5 .
And is fixed by updating pytest to 3.4 or more.

@nicoddemus here is the full output
_pytest.vendored_packages.pluggy.PluginValidationError: Plugin 'xdist' could not be loaded: (pytest 3.2.5 (/home/myworkspace/.tox/py27/lib/python2.7/site-packages), Requirement.parse('pytest>=3.4'))!

Should the new version pytest-xdist=1.22.4 be compatible with pytest=3.2.5 ?

Thank you,
Cauvery.

@nicoddemus
Copy link
Member

Yeah 1.22.4 dropped support for pytest<3.4. In retrospect that was a mistake on my part, because we shouldn't change requirements in bug-fix releases.

Anyway, the underlying cause seems to be that pip's dependency solver has known problems, because 1.22.4 correctly declares the pytest>=3.5 dependency:

https://github.com/pytest-dev/pytest-xdist/blob/3776f3b74b73fedc4a74c1dc6acf893bd7fb7d67/setup.py#L3

khink added a commit to fourdigits/django-oscar that referenced this issue Jun 15, 2020
1.23.4 broke pytest 3.4 compatibility, see:
pytest-dev/pytest#3724
khink added a commit to fourdigits/django-oscar that referenced this issue Jun 15, 2020
1.23.4 broke pytest 3.4 compatibility, see:
pytest-dev/pytest#3724
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug problem that needs to be addressed type: question general question, might be closed after 2 weeks of inactivity
Projects
None yet
Development

No branches or pull requests

3 participants