doctest.DocTestFailure

exception doctest.DocTestFailure(test, example, got)[source]

A DocTest example has failed in debugging mode.

The exception instance has variables:

  • test: the DocTest object being run
  • example: the Example object that failed
  • got: the actual output