Back to index

python3.2  3.2.2
Public Member Functions | Public Attributes
test.test_pdb.PdbTestInput Class Reference
Inheritance diagram for test.test_pdb.PdbTestInput:
Inheritance graph
Collaboration diagram for test.test_pdb.PdbTestInput:
Collaboration graph

List of all members.

Public Member Functions

def __init__
def __enter__
def __exit__

Public Attributes

_PyObject_HEAD_EXTRA Py_ssize_t ob_refcnt
struct _typeobjectob_type

Detailed Description

Context manager that makes testing Pdb in doctests easier.

Definition at line 14 of file

Constructor & Destructor Documentation

def test.test_pdb.PdbTestInput.__init__ (   self,

Definition at line 17 of file

00018     def __init__(self, input):
00019         self.input = input

Here is the caller graph for this function:

Member Function Documentation

Definition at line 20 of file

00021     def __enter__(self):
00022         self.real_stdin = sys.stdin
00023         sys.stdin = _FakeInput(self.input)

def test.test_pdb.PdbTestInput.__exit__ (   self,

Definition at line 24 of file

00025     def __exit__(self, *exc):
00026         sys.stdin = self.real_stdin

Here is the caller graph for this function:

Member Data Documentation

Definition at line 18 of file

Definition at line 107 of file object.h.

struct _typeobject* _object::ob_type [inherited]

Definition at line 108 of file object.h.

Definition at line 21 of file

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