-
Notifications
You must be signed in to change notification settings - Fork 234
Different tests were collected (since 1.30.0 release), with pytest-randomly #472
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
Comments
I am using |
Are you using |
@blueyed I'm not, no. |
@therefromhere |
Seeing same types of random collection-based failures in statsmodels. Pinning to < 1.30 in statsmodels/statsmodels#6205 |
Might be worth checking if pytest-dev/pytest#6008 fixes it (in pytest). |
@blueyed doesn't seem to, I'm still seeing it with |
I encountered this issue as well but found a weird workaround.
The long test name is derived from a custom param ID I pass. When I remove the custom ID, the node name changes to: |
I am also seeing this issue with some data-driven tests (using ddt).
pip freeze looks like:
|
Also got this error with:
|
Same issue with
OR
How to deal with that? UPD. |
🎲 pytest-randomly 3.3.0 has fixed this issue 🎲 |
This issue has collected some reports for other plugins:
If you are experiencing these, please open new issues and on the corresponding plugins too. They may want to do the same as pytest-dev/pytest-randomly#245 . |
I've been seeing this a lot today. I'm fairly sure it's related to the 1.30.0 release not playing nice with pytest-randomly.
Running
Hits this error almost every time:
Any of the following seems to fix it:
--randomly-seed=123456789
For what it's worth this is with pytest-django, other pytest stuff in play is:
FWIW I'm not using
pytest.mark.parametrize
in my tests.The text was updated successfully, but these errors were encountered: