Back to index

plone3  3.1.7
Private Member Functions | Static Private Attributes
CMFCore.tests.base.testcase.WarningInterceptor Class Reference
Inheritance diagram for CMFCore.tests.base.testcase.WarningInterceptor:
Inheritance graph
[legend]

List of all members.

Private Member Functions

def _trap_warning_output
def _free_warning_output

Static Private Attributes

 _old_stderr = None
 _our_stderr_stream = None

Detailed Description

Definition at line 58 of file testcase.py.


Member Function Documentation

Definition at line 73 of file testcase.py.

00073 
00074     def _free_warning_output( self ):
00075 
00076         if self._old_stderr is None:
00077             return
00078 
00079         sys.stderr = self._old_stderr
00080 

Here is the caller graph for this function:

Definition at line 63 of file testcase.py.

00063 
00064     def _trap_warning_output( self ):
00065 
00066         if self._old_stderr is not None:
00067             return
00068 
00069         from StringIO import StringIO
00070 
00071         self._old_stderr = sys.stderr
00072         self._our_stderr_stream = sys.stderr = StringIO()

Here is the caller graph for this function:


Member Data Documentation

Definition at line 60 of file testcase.py.

Definition at line 61 of file testcase.py.


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