AlkantarClanX12
Current Path : /opt/alt/python27/lib64/python2.7/unittest/ |
Current File : //opt/alt/python27/lib64/python2.7/unittest/result.pyo |
� ^ bc @ s� d Z d d l Z d d l Z d d l Z d d l m Z d d l m Z d d l m Z e Z d � Z d Z d Z d e f d � � YZ d S( s Test result objecti����N( t StringIOi ( t util( t wrapsc s t � � � f d � � } | S( Nc s/ t | d t � r | j � n � | | | � S( Nt failfast( t getattrt Falset stop( t selft argst kw( t method( s4 /opt/alt/python27/lib64/python2.7/unittest/result.pyt inner s ( R ( R R ( ( R s4 /opt/alt/python27/lib64/python2.7/unittest/result.pyR s s Stdout: %ss Stderr: %st TestResultc B s� e Z d Z d Z e Z e Z d d d d � Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z e d � � Z e d � � Z d � Z d � Z d � Z e d � � Z d � Z d � Z d � Z d � Z d � Z d � Z RS( s� Holder for test result information. Test results are automatically managed by the TestCase and TestSuite classes, and do not need to be explicitly manipulated by writers of tests. Each instance holds the total number of tests run, and collections of failures and errors that occurred among those test runs. The collections contain tuples of (testcase, exceptioninfo), where exceptioninfo is the formatted traceback of the error that occurred. c C s� t | _ g | _ g | _ d | _ g | _ g | _ g | _ t | _ t | _ d | _ d | _ t j | _ t j | _ t | _ d S( Ni ( R R t failurest errorst testsRunt skippedt expectedFailurest unexpectedSuccessest shouldStopt buffert Nonet _stdout_buffert _stderr_buffert syst stdoutt _original_stdoutt stderrt _original_stderrt _mirrorOutput( R t streamt descriptionst verbosity( ( s4 /opt/alt/python27/lib64/python2.7/unittest/result.pyt __init__( s c C s d S( s# Called by TestRunner after test runN( ( R ( ( s4 /opt/alt/python27/lib64/python2.7/unittest/result.pyt printErrors8 t c C s&