8a40fc5315
As discussed in https://github.com/pytest-dev/pytest/pull/9956#issuecomment-1132710934. Also added PytestRemovedIn8Warning to the reference docs.