Back to index

python3.2  3.2.2
Public Member Functions | Public Attributes
doctest.DocTestFailure Class Reference
Inheritance diagram for doctest.DocTestFailure:
Inheritance graph
[legend]
Collaboration diagram for doctest.DocTestFailure:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def __init__
def __str__

Public Attributes

 test
 example
 got

Detailed Description

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

Definition at line 1628 of file doctest.py.


Constructor & Destructor Documentation

def doctest.DocTestFailure.__init__ (   self,
  test,
  example,
  got 
)

Definition at line 1639 of file doctest.py.

01639 
01640     def __init__(self, test, example, got):
01641         self.test = test
01642         self.example = example
01643         self.got = got

Here is the caller graph for this function:


Member Function Documentation

Definition at line 1644 of file doctest.py.

01644 
01645     def __str__(self):
01646         return str(self.test)


Member Data Documentation

Definition at line 1641 of file doctest.py.

Definition at line 1642 of file doctest.py.

Definition at line 1640 of file doctest.py.


The documentation for this class was generated from the following file: