Fixed a regression in 8.0.2 where tests created using tmp_path have been collected multiple times in CI under Windows.