-
Notifications
You must be signed in to change notification settings - Fork 30
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
-p no:randomly
causing tests to fail under Python 3.8 and 3.9
#647
Comments
Output for passing tests:
Output for failing tests:
|
This sounds to me like you have some flaky tests? I don't have time to work on your project. If you can produce a minimal reproduction that proves it's an issue in pytest-randomly, sure, I can look at it. |
I couldn't find out the root cause yet but I've seen this conditional import and it's an interesting coincidence: https://github.com/pytest-dev/pytest-randomly/blob/main/src/pytest_randomly/__init__.py#L22-L25 |
If you can provide a minimal reproducer, I can look at that. But I don't have time to clone your whole project and try debug inside unfamiliar tools like Hatch. |
Python Version
3.9.20
pytest Version
8.3.2
Package Version
3.15.0
Description
As you can see in the following table, having
pytest-randomly
installed and using-p no:randomly
results in failed tests but only under Python 3.8 and 3.9:pytest -p no:randomly tests/test_jsonreport.py::test_report_collectors
pytest tests/test_jsonreport.py::test_report_collectors
To replicate the issue, checkout this repo and run the above commands in a Python 3.9 virtualenv.
The text was updated successfully, but these errors were encountered: