Your IP : 18.118.195.30
3
\
� @ s2 d dl Z d dlZd dlZd dlZd dlZd dlZd dljjZ d dl
m
Z
G dd� dej�ZG dd� d�Z
ddd �Zdd
d�Zedk�r.G d
d� dej�Zej� Zejeje�� ej� Zeedd� ejD ���Zeej�Zeje�Ze dej!� � e ddd� x(e j"ej#� �D ]Z$e e$j%� dd� �qW e � dS )� 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"