On this page
  1. doctest.UnexpectedException
  2. Import
  3. Signature & Overview
  4. Methods & Attributes
  5. Usage
  6. Gotchas
  7. REPL Inspect

doctest.UnexpectedException

Prev: doctest.testsource | Up: doctest
Rel: doctest.debug, doctest.debug_src, doctest.DebugRunner, doctest.DocFileSuite
Ref: docs.python.org โ€” doctest.UnexpectedException
Tags: #public #python3 #stdlib #doctest


Import

import doctest
from doctest import UnexpectedException

Signature & Overview

doctest.UnexpectedException(test, example, exc_info)

A DocTest example has encountered an unexpected exception The exception instance has variables: - test: the DocTest object being run

Methods & Attributes

Usage

import doctest

assert issubclass(doctest.UnexpectedException, Exception)

Gotchas

REPL Inspect

from doctest import UnexpectedException
help(UnexpectedException)

Linked from

Related notes