Do not trigger the deprecated ``pytest_warning_captured`` in pytest 6.0+.