-
Notifications
You must be signed in to change notification settings - Fork 40
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
module 'pytest_cases' has no attribute 'CasesCollectionWarning' when running with xdist enabled #249
Comments
It seems from the traceback that the issue comes from
I found a similar issue in pytest-xdist: pytest-dev/pytest-xdist#404 |
I found the culprit: python-pytest-cases/src/pytest_cases/case_parametrizer_new.py Lines 682 to 686 in 8d11b7d
The issue is that I set |
@lilo-d please note that the |
…CollectionWarning' when running `pytest-xdist` and at least one cases class is ignored because of `__init__` or `__new__`. Fixed #249
Hi,
started integrating pytest_cases in our unit testing suite (already did before in our integration testing suite), but I'm facing an issue at collection when running with xdist:
pytest -c ../pytest.ini -n 1 --rootdir=.
Note that running without xdist works fine:
pytest -c ../pytest.ini --rootdir=.
Not sure if this is our setup or a general issue? I could help to further debug if needed.
Thanks, Lieven
The text was updated successfully, but these errors were encountered: