Skip to content

Support pytest 9.2 #146

Closed
Closed

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

  1. GuillaumeLagrange commented on Oct 30, 2026

    @GuillaumeLagrange
    ContributorAuthor

    Done, soon available in release 5.0.4

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

Metadata

Metadata

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