TST: fix running a regression test with pytest 7 - #16726
Conversation
|
Thank you for your contribution to Astropy! 🌌 This checklist is meant to remind the package maintainers who will review this pull request of some common things to look for.
|
|
Thanks! I just added |
|
Well, should we also attach the fix here? Also maybe need a rebase to pick up your mpl-dev fix? Thanks! |
|
I wonder if we should have a regular CI job pinned to pytest 7. 🤔 |
77ef078 to
70cd098
Compare
That would require knowledge of a fix, which at the moment I don't have 👼🏻
done
I think errors are rare enough that we don't need one. In 6 month we should be able to set pytest 8.0 as our minimum requirement anyway :) |
|
wait... if CI is to be believed, this is actually apparently sufficient to fix #16724 by itself. I won't pretend that I get why, but all the better. |
|
Hmm. Okay... So maybe that warning causes pytest to throw exception at a weird place, and the |
|
Link check failure is unrelated. I will wait till aarch64 completes before approving. Thanks! |
|
If it is indeed caused by recent change by @ayshih , that means somehow the change makes the warning pops up even with the limitation of older pytest, which would theoretically mean that the backport would not be needed, but it would be obvious when the backport PR fails on the "exotic" jobs. |
|
Thanks! |
Description
This pull request is to address a spurious warning that gets in the way in the context of #16724 and which can be reproduced even on non-exotic archs with pytest 7.4.4:
Fix #16724