Skip to content

TST: unpin pytest#31906

Draft
rcomer wants to merge 1 commit into
matplotlib:mainfrom
rcomer:pytest-fixes
Draft

TST: unpin pytest#31906
rcomer wants to merge 1 commit into
matplotlib:mainfrom
rcomer:pytest-fixes

Conversation

@rcomer

@rcomer rcomer commented Jun 15, 2026

Copy link
Copy Markdown
Member

PR summary

Closes #31897. Turned out to not be as difficult as I thought.

Change the TestSpectral.stim fixture method to be a class method, following pytest's deprecation. This actually makes the code a little more intuitive as shown by the deleted comment.

I'm not sure why I had problems with the tests hanging when I tried yesterday, but it was fine on a different machine today 🤷‍♀️

AI Disclosure

No AI used.

PR checklist

@rcomer rcomer added the CI: testing CI configuration and testing label Jun 15, 2026
@rcomer rcomer added this to the v3.11.1 milestone Jun 15, 2026
@rcomer rcomer marked this pull request as ready for review June 15, 2026 15:13
@QuLogic

QuLogic commented Jun 15, 2026

Copy link
Copy Markdown
Member

Can we also fix the PytestRemovedIn10Warning: Passing a non-Collection iterable to parametrize is deprecated warning at the same time?

@rcomer

rcomer commented Jun 15, 2026

Copy link
Copy Markdown
Member Author

Can we also fix the PytestRemovedIn10Warning: Passing a non-Collection iterable to parametrize is deprecated warning at the same time?

Sure, I didn’t even spot that one. I’m confused why it doesn’t show as an error when the other deprecation did.

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

Labels

CI: testing CI configuration and testing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[MNT]: unpin pytest

2 participants