Followup of https://github.com/pytest-dev/pytest/pull/5352
Followup of #5352