Server: appserver-7f0f8755-nginx-15961cad18524ec5a9db05f2a6a7e440
Current directory: /usr/lib/python2.7/unittest
Software: nginx/1.27.5
Shell Command
Create a new file
Upload file
File: runner.pyc
� ӫ[c @ s� d Z d d l Z d d l Z d d l m Z d d l m Z e Z d e f d � � YZ d e j f d � � YZ d e f d � � YZ d S( s Running testsi����Ni ( t result( t registerResultt _WritelnDecoratorc B s, e Z d Z d � Z d � Z d d � Z RS( s@ Used to decorate file-like objects with a handy 'writeln' methodc C s | | _ d S( N( t stream( t selfR ( ( s% /usr/lib/python2.7/unittest/runner.pyt __init__ s c C s+ | d k r t | � � n t | j | � S( NR t __getstate__( R R ( t AttributeErrort getattrR ( R t attr( ( s% /usr/lib/python2.7/unittest/runner.pyt __getattr__ s c C s' | r | j | � n | j d � d S( Ns ( t write( R t arg( ( s% /usr/lib/python2.7/unittest/runner.pyt writeln s N( t __name__t __module__t __doc__R R t NoneR ( ( ( s% /usr/lib/python2.7/unittest/runner.pyR s t TextTestResultc B s� e Z d Z d d Z d d Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z RS( sh A test result class that can print formatted text results to a stream. Used by TextTestRunner. t =iF t -c C sP t t | � j | | | � | | _ | d k | _ | d k | _ | | _ d S( Ni ( t superR R R t showAllt dotst descriptions( R R R t verbosity( ( s% /usr/lib/python2.7/unittest/runner.pyR $ s c C sB | j � } | j r4 | r4 d j t | � | f � St | � Sd S( Ns ( t shortDescriptionR t joint str( R t testt doc_first_line( ( s% /usr/lib/python2.7/unittest/runner.pyt getDescription+ s c C s\ t t | � j | � | j rX | j j | j | � � | j j d � | j j � n d S( Ns ... ( R R t startTestR R R R t flush( R R ( ( s% /usr/lib/python2.7/unittest/runner.pyR 2 s c C s_ t t | � j | � | j r2 | j j d � n) | j r[ | j j d � | j j � n d S( Nt okt .( R R t addSuccessR R R R R R! ( R R ( ( s% /usr/lib/python2.7/unittest/runner.pyR$ 9 s c C sb t t | � j | | � | j r5 | j j d � n) | j r^ | j j d � | j j � n d S( Nt ERRORt E( R R t addErrorR R R R R R! ( R R t err( ( s% /usr/lib/python2.7/unittest/runner.pyR' A s c C sb t t | � j | | � | j r5 | j j d � n) | j r^ | j j d � | j j � n d S( Nt FAILt F( R R t addFailureR R R R R R! ( R R R( ( ( s% /usr/lib/python2.7/unittest/runner.pyR+ I s c C sk t t | � j | | � | j r> | j j d j | � � n) | j rg | j j d � | j j � n d S( Ns skipped {0!r}t s( R R t addSkipR R R t formatR R R! ( R R t reason( ( s% /usr/lib/python2.7/unittest/runner.pyR- Q s c C sb t t | � j | | � | j r5 | j j d � n) | j r^ | j j d � | j j � n d S( Ns expected failuret x( R R t addExpectedFailureR R R R R R! ( R R R( ( ( s% /usr/lib/python2.7/unittest/runner.pyR1 Y s c C s_ t t | � j | � | j r2 | j j d � n) | j r[ | j j d � | j j � n d S( Ns unexpected successt u( R R t addUnexpectedSuccessR R R R R R! ( R R ( ( s% /usr/lib/python2.7/unittest/runner.pyR3 a s c C sL | j s | j r" | j j � n | j d | j � | j d | j � d S( NR% R) ( R R R R t printErrorListt errorst failures( R ( ( s% /usr/lib/python2.7/unittest/runner.pyt printErrorsi s c C sx xq | D]i \ } } | j j | j � | j j d | | j | � f � | j j | j � | j j d | � q Wd S( Ns %s: %ss %s( R R t separator1R t separator2( R t flavourR5 R R( ( ( s% /usr/lib/python2.7/unittest/runner.pyR4 o s #( R R R R8 R9 R R R R$ R' R+ R- R1 R3 R7 R4 ( ( ( s% /usr/lib/python2.7/unittest/runner.pyR s t TextTestRunnerc B sD e Z d Z e Z e j e d e e d d � Z d � Z d � Z RS( s� A test runner class that displays results in textual form. It prints out the names of tests as they are run, errors as they occur, and a summary of the results at the end of the test run. i c C sO t | � | _ | | _ | | _ | | _ | | _ | d k rK | | _ n d S( N( R R R R t failfastt bufferR t resultclass( R R R R R<