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
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::TestSpectralclass 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 turningEdit: found my mistake.stiminto 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.Proposed fix
No response