Your IP : 18.117.101.250
3
\
� @ s6 d Z ddlZddlZddlZddlZddlZddlZddljj Z
ddlmZ G dd� dej�Z
G dd� d�Zdd d
�Zddd�Zed
k�r2G dd� dej�Zej� Zejeje�� ej� Zeedd� ejD ���Zeej�Zeje�Z e!dej"� � e!ddd� x(e
j#e j$� �D ]Z%e!e%j&� dd� �qW e!� dS )z=Test runner and result class for the regression test suite.
� N)�datetimec s� e Zd Zdd d Zdd d Z� fdd�Zedd� �Z� fd d
�Zd$dd
�Z dd� Z
edd� �Z� fdd�Z� fdd�Z
� fdd�Z� fdd�Z� fdd�Z� fdd�Zdd� Zd d!� Zd"d#� Z� ZS )%�RegressionTestResult�=�F �
�-c s\ t � j||dd� d| _tjd�| _| jjdtj� j d�� d | _
d | _g | _t
|�| _d S )Nr )�stream�descriptions� verbosityTZ testsuite�start� )�super�__init__�buffer�ETZElement�_RegressionTestResult__suite�setr ZutcnowZ isoformat�_RegressionTestResult__e�!_RegressionTestResult__start_timeZ_RegressionTestResult__results�bool�_RegressionTestResult__verbose)�selfr r r
)� __class__� �//usr/lib64/python3.6/test/support/testresult.pyr s zRegressionTestResult.__init__c C sL y
|j }W n tk
r" t|�S X y|� S tk
rB t|�S X t|�S )N)�id�AttributeError�str� TypeError�repr)�cls�testZtest_idr r r Z__getId s
zRegressionTestResult.__getIdc sV t � j|� tj| jd� | _}tj� | _| j rR| j
j| j|�� d�� | j
j
� d S )NZtestcasez ... )r
� startTestr �
SubElementr r �time�perf_counterr r r �write�getDescription�flush)r r! �e)r r r r"