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

Unable to run tests with pytest-xdist #19

Open
bodharma opened this issue Apr 7, 2020 · 0 comments
Open

Unable to run tests with pytest-xdist #19

bodharma opened this issue Apr 7, 2020 · 0 comments

Comments

@bodharma
Copy link

bodharma commented Apr 7, 2020

Running my tests via pytest and receiving output:

platform linux -- Python 3.7.1, pytest-5.3.5, py-1.8.1, pluggy-0.13.1 -- /usr/local/bin/python
cachedir: .pytest_cache
rootdir: /requests_tests, inifile: pytest.ini, testpaths: tests
plugins: split-tests-1.0.9, sugar-0.9.2, xdist-1.29.0, allure-pytest-2.8.11, forked-1.1.3
gw0 I / gw1 I / gw2 I / gw3 I / gw4 I
[gw0] linux Python 3.7.1 cwd: /requests_tests
[gw1] linux Python 3.7.1 cwd: /requests_tests
[gw2] linux Python 3.7.1 cwd: /requests_tests
[gw3] linux Python 3.7.1 cwd: /requests_tests
[gw4] linux Python 3.7.1 cwd: /requests_tests
[gw0] Python 3.7.1 (default, Nov 16 2018, 06:24:50)  -- [GCC 6.3.0 20170516]
[gw1] Python 3.7.1 (default, Nov 16 2018, 06:24:50)  -- [GCC 6.3.0 20170516]
[gw2] Python 3.7.1 (default, Nov 16 2018, 06:24:50)  -- [GCC 6.3.0 20170516]
[gw3] Python 3.7.1 (default, Nov 16 2018, 06:24:50)  -- [GCC 6.3.0 20170516]
[gw4] Python 3.7.1 (default, Nov 16 2018, 06:24:50)  -- [GCC 6.3.0 20170516]
gw0 [175] / gw1 [175] / gw2 [175] / gw3 [175] / gw4 [175]

scheduling tests via LoadScheduling

==================================== ERRORS ====================================
_____________________________ ERROR collecting gw1 _____________________________
Different tests were collected between gw0 and gw1. The difference is:
--- gw0

+++ gw1

@@ -1,175 +1,175 @@

My pip freeze:

    "allure-pytest==2.8.11",
    "pytest==5.3.5",
    "pytest-xdist==1.31.0",
    "requests==2.23.0",
    "python-dateutil==2.8.1",
    "grappa==0.1.12",
    "tox==3.14.5",
    "virtualenv==20.0.10",
    "pytest-sugar==0.9.2",
    "click",
    "lxml",
    "pytest-split-tests"

Some things are happening there:

pytest-dev/pytest-xdist#472

UPD.
When I remove pytest-xdist everything works fine

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

No branches or pull requests

1 participant