Closed
Description
From @nedbat via Twitter:
This message could be better, because removing None doesn’t work now:
PytestRemovedIn8Warning: Passing None to catch any warning has been deprecated, pass no arguments instead: Replace pytest.warns(None) by simply pytest.warns().
When I remove None and run with pytest 7, I get failures:
No idea off-hand what's going on there, as that seems exactly what we did in #8677 too.