Your IP : 216.73.216.196
B
C$�X!� � @ s d Z ddlZddlZddlZddlZddlZddlZddlZddlZddl Z
ddlZ
ddlZ
ddl
mZmZmZ ddlmZ ed�Zed�ZG dd� de�ZdEdd �ZG d
d� d�ZG dd
� d
e�Zdd� Zdd� Zg Zd�� Zee�Z e �!d� dd� Z"dd� Z#dd� Z$dFdd�Z%G dd� de�Z&dd� Z'G d d!� d!�Z(G d"d#� d#e�Z)G d$d%� d%�Z*G d&d'� d'�Z+G d(d)� d)ej,�Z-G d*d+� d+ej.�Z/d,d-� Z0G d.d/� d/e1�Z2G d0d1� d1�Z3e3� Z4d2Z5G d3d4� d4e1�Z6e7fd5d6�Z8dGd7d8�Z9d9d:� Z:d;d<� Z;dHd=d>�Z<d?d@� Z=dAdB� Z>dCdD� Z?dS )Iz< command line options, ini-file and conftest.py processing. � N)�
PluginManager�HookimplMarker�HookspecMarker)�safe_str�pytestc @ s e Zd Zdd� Zdd� ZdS )�ConftestImportFailurec C s t �| ||� || _|| _d S )N)� Exception�__init__�path�excinfo)�selfr
r � r
�?/opt/alt/python37/lib/python3.7/site-packages/_pytest/config.pyr s zConftestImportFailure.__init__c C s4 | j \}}}t�|�}t|�d d�|dd � � S )N�
� � )r � traceback� format_tb�repr�join)r �etypeZevalueZetb� formattedr
r
r �__str__ s
zConftestImportFailure.__str__N)�__name__�
__module__�__qualname__r r r
r
r
r r s r c
C s� y�yt | |�}W nl tk
r| } zNtj�tj�}x&tj|j � D ]}|j
|�� dd� q>W |j
d|j dd� dS d}~X Y n&X z|j
�� |jj|d�S |�� X W nD tk
r� } z&x |jD ]}tj�d|f � q�W dS d}~X Y nX dS )z� return exit code, after performing an in-process test run.
:arg args: list of command line arguments.
:arg plugins: list of plugin objects to be auto-registered during
initialization.
T)ZredzERROR: could not load %s
� N)�configz
ERROR: %s
)�_prepareconfigr �py�io�TerminalWriter�sys�stderrr �format_exceptionr �line�rstripr
�
pluginmanagerZ
check_pending�hookZpytest_cmdline_main�_ensure_unconfigure�
UsageError�args�write)r+ �pluginsr �e�twr% �msgr
r
r �main% s"