Skip to content

Pytest has not attribute StashKey #12107

@EngineerHus

Description

@EngineerHus

Hi All,

On our CI environment, we have been running our pytests for some time now, but weirdly now, we are seeing an error, which is AttributeError: module 'pytest' has no attribute 'StashKey'

We are running pytest with version 5.3.5 so my initial thought was maybe due to the 2 recent releases last week, maybe StashKey is not supported anymore so I had to do trial and error by installing different pytest versions and finding out which is the oldest pytest version that still supports this.

As of now, the oldest pytest version that supports StashKey seems to be 7.0.0. Could one of the devs please maybe update the docs so future pytesters would be able to figure this out?

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: needs informationreporter needs to provide more information; can be closed after 2 or more weeks of inactivity

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions