Skip to content

Support pytest 9.2 #146

Open
Open

Description

@GuillaumeLagrange

With pytest 9.2 and pytest-benchmark installed, pytest --codspeed crashes at session start:

AttributeError: 'FixtureManager' object has no attribute '_arg2fixturedefs'

pytest 9.2 replaced the private FixtureManager._arg2fixturedefs attribute with _arg2node2fixturedefs (pytest-dev/pytest#14984, fixing pytest-dev/pytest#14942). pytest-codspeed writes into that attribute to override pytest-benchmark's benchmark fixture.

Workaround: pin pytest<9.2 until a fixed release is out.

Fix in progress: #141

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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