<h3 dir="auto">Describe the issue linked to the documentation</h3>
<p dir="auto">pytest doesn't work with newer version</p>
<h3 dir="auto">Suggest a potential alternative/fix</h3>
<p dir="auto"><em>No response</em></p>
<p dir="auto">We recently pinned pytest to 6.2.5 in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1124905071" data-permission-text="Title is private" data-url="https://github.com/scikit-learn/scikit-learn/issues/22389" data-hovercard-type="pull_request" data-hovercard-url="/scikit-learn/scikit-learn/pull/22389/hovercard" href="https://github.com/scikit-learn/scikit-learn/pull/22389">#22389</a> because <code class="notranslate">pytest=7.0</code> stalled the CI.</p>