| Server IP : 156.238.232.47 / Your IP : 216.73.216.150 Web Server : nginx/1.25.3 System : Linux C202504152095410 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64 User : www ( 1000) PHP Version : 8.3.25 Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /lib64/python3.6/unittest/__pycache__/ |
Upload File : |
3
\G � @ sn d Z ddlZddlZddlZddlmZ ddlmZ dZG dd� de �Z
G d d
� d
ej�ZG dd� de �Z
dS )
z
Running tests� N� )�result)�registerResultTc @ s* e Zd ZdZdd� Zdd� Zd dd�ZdS )
�_WritelnDecoratorz@Used to decorate file-like objects with a handy 'writeln' methodc C s
|| _ d S )N)�stream)�selfr � r �/usr/lib64/python3.6/runner.py�__init__ s z_WritelnDecorator.__init__c C s |dkrt |��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)N)�__name__�
__module__�__qualname__�__doc__r
r r r r r r r
s r c s� e Zd ZdZdd Zdd Z� fdd�Zdd� Z� fd d
�Z� fdd�Z � fd
d�Z
� fdd�Z� fdd�Z� fdd�Z
� fdd�Zdd� Zdd� Z� ZS )�TextTestResultzhA test result class that can print formatted text results to a stream.
Used by TextTestRunner.
�=�F �-c s8 t t| �j|||� || _|dk| _|dk| _|| _d S )Nr )�superr r
r �showAll�dots�descriptions)r r r � verbosity)� __class__r r r
% s
zTextTestResult.__init__c C s0 |j � }| jr$|r$djt|�|f�S t|�S d S )Nr )ZshortDescriptionr �join�str)r �testZdoc_first_liner r r �getDescription, s
zTextTestResult.getDescriptionc sB t t| �j|� | jr>| jj| j|�� | jjd� | jj� d S )Nz ... )r r � startTestr r r r% �flush)r r$ )r! r r r&