Skip to content

pytest internal error AttributeError: 'Namespace' object has no attribute 'failedfirst' if cacheprovider plugin disabled  #54

@jhanm12

Description

@jhanm12

pytest-random-order - Always assumes that the cacheprovider plugin is always active. It fails in this below case:

In an env:

(env)$ pip list | grep pytest
allure-pytest                 2.13.2
cafy-pytest                   0.1.0
pytest                        7.4.3
pytest-cov                    4.1.0
pytest-ordering               0.6
pytest-random-order           1.1.0
pytest-repeat                 0.9.3

If we run a pytest script with this -p no:cacheprovider

pytest <Any Basic .py Pytest Script> -p no:cacheprovider

Had to disable random order plugin - To make it work when disable cache parameter is set.

-p no:random_order

Please Refer this : pytest-dev/pytest#9250

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