PR at #10013 - [x] a detailed description of the bug or problem you are having - [x] output of `pip list` from the virtual environment you are using - [x] pytest and operating system versions N/A But this may likely be an issue going by to 6.2.0 with #8006 - [x] minimal example if possible https://docs.pytest.org/en/7.1.x/how-to/monkeypatch.html  