Obsoleted by https://github.com/pytest-dev/pytest/pull/9134, which was released as part of pytest 7.0.0. It has pytest<7 pinned, and we only have the single pytest version, so it can be removed.