The change from `path not in confuctdir.parents` to the `relative_to` check in 0c98f19231 broke picking up conftest files when running against an installed package/site-packages. See the issue for more details. Fix #9767.
0c98f19231