docstr: Absolute paths resolve back to absolute paths.
docstr_tok: ["Absolute","paths","resolve","back","to","absolute","paths","."]
code: 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
      ) == (
          Path(os.path.abspath("src")),
          [],
      )
  
      # 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
      ) == (Path(os.path.abspath("src")), [])
  
imports: import argparse
  import os
  import re
  import sys
  from pathlib import Path
  from typing import Optional
  import pytest
  from _pytest.config import ExitCode
  from _pytest.config import UsageError
  from _pytest.main import resolve_collection_argument
  from _pytest.main import validate_basetemp
  from _pytest.pytester import Pytester
label_desc: Use image node_id 7 for calling the TestResolveCollectionArgument obj's underlying member method code with example usage: obj.test_absolute_paths_are_resolved_correctly(invocation_path) without return types