Apply suggestions from code review
Apply suggestions from code review

Co-Authored-By: nicoddemus <024fc659bb4ab842ec49c8a162b11a29104488bd@gmail.com>
nicoddemus/pytest-xdist,RonnyPfannschmidt/pytest-xdist,pytest-dev/pytest-xdist