관리-도구
편집 파일: runner.cpython-310.opt-2.pyc
o 6��fs � @ sl d dl Z d dlZd dlZddlmZ ddlmZ dZG dd� de�Z G dd � d ej �ZG d d� de�ZdS )� N� )�result)�registerResultTc @ s( e Zd Z dd� Zdd� Zddd�ZdS ) �_WritelnDecoratorc C s || _ d S �N)�stream)�selfr � r �6/opt/alt/python310/lib64/python3.10/unittest/runner.py�__init__ s z_WritelnDecorator.__init__c C s |dv rt |��t| j|�S )N)r �__getstate__)�AttributeError�getattrr )r �attrr r r �__getattr__ s z_WritelnDecorator.__getattr__Nc C s |r| � |� | � d� d S �N� )�write)r �argr r r �writeln s z_WritelnDecorator.writelnr )�__name__� __module__�__qualname__r r r r r r r r s r c s� e Zd Z dZdZ� fdd�Zdd� Z� fdd�Z� fd d �Z� fdd�Z � fd d�Z � fdd�Z� fdd�Z� fdd�Z dd� Zdd� Z� ZS )�TextTestResultzF======================================================================zF----------------------------------------------------------------------c s8 t t| ��|||� || _|dk| _|dk| _|| _d S )Nr )�superr r r �showAll�dots�descriptions)r r r � verbosity�� __class__r r r % s zTextTestResult.__init__c C s, |� � }| jr|rd�t|�|f�S t|�S r )ZshortDescriptionr �join�str)r �testZdoc_first_liner r r �getDescription, s zTextTestResult.getDescriptionc sF t t| ��|� | jr!| j�| �|�� | j�d� | j�� d S d S )Nz ... )r r � startTestr r r r$ �flush�r r# r r r r% 3 s �zTextTestResult.startTestc �T t t| ��|� | jr| j�d� | j�� d S | jr(| j�d� | j�� d S d S )N�ok�.) r r � addSuccessr r r r&