pytest-test-groups
pytest-test-groups copied to clipboard
Unable to run tests with pytest-xdist
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:
https://github.com/pytest-dev/pytest-xdist/issues/472
UPD.
When I remove pytest-xdist everything works fine