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

Suppressing warnings triggers "Different tests were collected between" error for Python 3.8 #808

Open
fbunt opened this issue Aug 24, 2022 · 0 comments

Comments

@fbunt
Copy link

fbunt commented Aug 24, 2022

I very recently started getting the "Different tests were collected between gwX and gwY" error when running tests with multiple workers. It only happens under specific circumstances though. The circumstances are:

  • python=3.8
  • Number of workers > 2
  • Warnings suppressed with "-p no:warnings" option

Versions:

$ conda list | grep pytest
pytest                    7.1.2            py38h578d9bd_0    conda-forge
pytest-forked             1.4.0              pyhd8ed1ab_0    conda-forge
pytest-xdist              2.5.0              pyhd8ed1ab_0    conda-forge

The other Python versions that I tested with were 3.7 and 3.9. I had no issues with them.

I found #432 but because of the specific circumstances, I created a new issue. I can close this and post the relevant info on that issue if needed.

@fbunt fbunt changed the title Suppressing warnings triggers "Different tests were collected between" error Suppressing warnings triggers "Different tests were collected between" error for Python 3.8 Aug 24, 2022
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