ok
Direktori : /proc/self/root/opt/alt/python35/lib64/python3.5/unittest/__pycache__/ |
Current File : //proc/self/root/opt/alt/python35/lib64/python3.5/unittest/__pycache__/runner.cpython-35.pyc |
B�MaF � @ 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 Z Gd d � d e � Z Gd d � d e j � Z Gd d � d e � Z d S) z Running tests� N� )�result)�registerResultTc @ s= e Z d Z d Z d d � Z d d � Z d d d � Z d S) �_WritelnDecoratorz@Used to decorate file-like objects with a handy 'writeln' methodc C s | | _ d S)N)�stream)�selfr � r �4/opt/alt/python35/lib64/python3.5/unittest/runner.py�__init__ s z_WritelnDecorator.__init__c C s( | d k r t | � � t | j | � S)Nr �__getstate__)r r )�AttributeError�getattrr )r �attrr r r �__getattr__ s z_WritelnDecorator.__getattr__Nc C s$ | r | j | � | j d � d S)N� )�write)r �argr r r �writeln s z_WritelnDecorator.writeln)�__name__� __module__�__qualname__�__doc__r r r r r r r r s r c s� e Z d Z d Z d d Z d d Z � f d d � Z d d � Z � f d d � Z � f d d � Z � f d d � Z � f d d � Z � f d d � Z � f d d � Z � f d d � Z d d � Z d d � Z � S)�TextTestResultzhA test result class that can print formatted text results to a stream. Used by TextTestRunner. �=�F �-c sP t t | � j | | | � | | _ | d k | _ | d k | _ | | _ d S)Nr )�superr r r �showAll�dots�descriptions)r r r � verbosity)� __class__r r r % s zTextTestResult.__init__c C sB | j � } | j r4 | r4 d j t | � | f � St | � Sd S)Nr )ZshortDescriptionr �join�str)r �testZdoc_first_liner r r �getDescription, s zTextTestResult.getDescriptionc sY t t | � j | � | j rU | j j | j | � � | j j d � | j j � d S)Nz ... )r r � startTestr r r r% �flush)r r$ )r! r r r&