pytest-postgresql 3.1.3 and pytest-redis 2.4.0 added support for pytest >= 7 so we can now drop the pytest pinning.
We also need to remove that pinning in all swh modules, using mr run sed -i 's/^pytest <.*$/pytest/' requirements-test.txt will do the trick.