AlkantarClanX12
Current Path : /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.opt-2.pyc |
���]F � @ s� 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)� N� )�result)�registerResultTc @ s7 e Z d Z d d � Z d d � Z d d d � Z d S)�_WritelnDecoratorc C s | | _ d S)N)�stream)�selfr � r �+/opt/alt/python35/lib64/python3.5/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__r r r r r r r r s r c s� e 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)�TextTestResult�=�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% 3 s zTextTestResult.startTestc s\ t t | � j | � | j r2 | j j d � n&