# Using Path().resolve() is better than py.path.realpath because # it resolves to the correct path/drive in case-insensitive file systems (#5792) key = Path(str(conftestpath)).resolve() with contextlib.suppress(KeyError): return self._conftestpath2mod[key] pkgpath = conftestpath.pypkg...