Skip to content

-p no:randomly causing tests to fail under Python 3.8 and 3.9 #647

Closed as not planned
@alexandrul

Description

@alexandrul

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:

Python 3.8 / 3.9 Python 3.10 / 3.11 / 3.12
pytest -p no:randomly tests/test_jsonreport.py::test_report_collectors fail pass
pytest tests/test_jsonreport.py::test_report_collectors pass pass

To replicate the issue, checkout this repo and run the above commands in a Python 3.9 virtualenv.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions