TST: unpin pytest - #31906
Conversation
|
Can we also fix the |
Sure, I didn’t even spot that one. I’m confused why it doesn’t show as an error when the other deprecation did. |
timhoffm
left a comment
There was a problem hiding this comment.
Optional: gen_writers and generate_validator_testcases could be changed to return lists. There’s no benefit in returning generators when we have to convert to lists anyway.
I thought about that but, since they are a bit complicated with multiple I may be missing a neater way to do it. |
|
Ok, let's not bother with generator or list. |
…906-on-v3.11.x Backport PR #31906 on branch v3.11.x (TST: unpin pytest)
PR summary
Closes #31897. Turned out to not be as difficult as I thought.
Change the
TestSpectral.stimfixture 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.Make lists from all the generators we use for parametrization, as that is also now deprecated.
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