Skip to content

[MNT]: unpin pytest #31897

@rcomer

Description

@rcomer

Summary

#31896 pins pytest to unbreak CI following the v9.1 release.

I tried looking into this a bit locally, but could not even run all the tests - they get to ~96% and hang.

I looked at the lib/matplotlib/tests/test_mlab.py::TestSpectral class a bit. This uses a fixture that is a method, but pytest have deprecated doing that unless the fixture is a class method. I tried the obvious thing of turning stim into a class method, but then the parametrization doesn't work: I get errors about the first test not using the parametrization. So I guess we need to parametrize the fixture (not sure off the top of my head how to do that for nested parametrizations) or rethink the structure of these tests. Edit: found my mistake.

Proposed fix

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions