This is required so py-pytest-cov is functional with newer versions of
py-pytest-xdist [1].
Backport patches from upstream commit to [selectively] add 3.11 support
to make some of the tests not fail when run with newer versions of
coverage.py [2].
While here, appease portlint by shifting where variables (`CONFLICTS`,
etc) are defined.
1. https://github.com/pytest-dev/pytest-cov/issues/422
2. https://github.com/pytest-dev/pytest-cov/issues/570
PR: 269360
Co-Authored-With: Yuri Victorovich <yuri@freebsd.org>