exceptions.py 315 B

123456789101112131415
  1. from __future__ import annotations
  2. from typing import final
  3. @final
  4. class UsageError(Exception):
  5. """Error in pytest usage or invocation."""
  6. __module__ = "pytest"
  7. class PrintHelp(Exception):
  8. """Raised when pytest should print its help to skip the rest of the
  9. argument parsing and validation."""