Think this is the last major issue to fix before being able to use V2 Pytest with unit tests in CI:
https://github.com/pantsbuild/pants/pull/7696
Ideas appreciated on how to approach a fix. Started with writing a failing integration test, and now trying to figure out how to fix it.