exceptions.py 288 B

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