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
[legend]
Collaboration diagram for test.test_pdb.PdbTestInput:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def __init__
def __enter__
def __exit__

Public Attributes

 input
 real_stdin
_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 test_pdb.py.


Constructor & Destructor Documentation

def test.test_pdb.PdbTestInput.__init__ (   self,
  input 
)

Definition at line 17 of file test_pdb.py.

00017 
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 test_pdb.py.

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

def test.test_pdb.PdbTestInput.__exit__ (   self,
  exc 
)

Definition at line 24 of file test_pdb.py.

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

Here is the caller graph for this function:


Member Data Documentation

Definition at line 18 of file test_pdb.py.

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 test_pdb.py.


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