def test_absolute_paths_are_resolved_correctly(self, invocation_path: Path) -> None:
        """Absolute paths resolve back to absolute paths."""
        full_path = str(invocation_path / "src")
        assert resolve_collection_argument(
            invocation_path, full_path
        ) == CollectionArgument(
            path=Path(os.path.abspath("src")),
            parts=[],
            module_name=None,
        )

        # ensure full paths given in the command-line without the drive letter resolve
        # to the full path correctly (#7628)
        drive, full_path_without_drive = os.path.splitdrive(full_path)
        assert resolve_collection_argument(
            invocation_path, full_path_without_drive
        ) == CollectionArgument(
            path=Path(os.path.abspath("src")),
            parts=[],
            module_name=None,
        )
Absolute paths resolve back to absolute paths.
testing/test_main.py