With pytest 7 released, when our project uses the last version of pytest, we fail to satisfy `pytest = "^5 | ^6"`