Your IP : 216.73.216.196
B
C$�X� � @ sj d Z ddlZddlZddlZddlZdd� Zejdd�dd� �Zd d
� Zdd� Z d
gZ
dd� Zdd� ZdS )z6 version info, help messages, tracing configuration. � Nc C s� | � d�}|jdddd� |jddddd d
� |jddd
g ddd� |jdddddd�f |jdddddd� |jddddddd� d S ) NZdebugconfigz --version�
store_truez2display pytest lib version and import information.)�action�helpz-hz--helpr z(show help message and configuration info)r �destr z-p�appendZplugins�nameznearly-load given plugin (multi-allowed). To avoid loading of plugins, use the `no:` prefix, e.g. `no:doctest`.)r r �default�metavarr z
--traceconfigz--trace-configFz*trace considerations of conftest.py files.)r r r z--debug�debugz>store internal tracing debug information in 'pytestdebug.log'.)r r r r z-oz--override-ini�*Zoverride_inizLoverride config option with option=value style, e.g. `-o xfail_strict=True`.)�nargsr r r )ZgetgroupZ addoptionZ
_addoption)�parser�group� r �C/opt/alt/python37/lib/python3.7/site-packages/_pytest/helpconfig.py�pytest_addoption s$
r T)Zhookwrapperc
# s� d V } | � � � � jjr�tj�d�}t|d����dtj t
j d�tt
tj��t�� � jf � � jj��j� � j�� �tj�d| � � ��fdd�}� �|� d S )Nzpytestdebug.log�wz5versions pytest-%s, py-%s, python-%s
cwd=%s
args=%s
�.z&writing pytestdebug information to %s
c s2 �� � tj�d�j � � jj�d � �� d S )Nz$wrote pytestdebug information to %s
)�close�sys�stderr�writer �trace�root� setwriterr )�config� debugfile�undo_tracingr r �
unset_tracing- s
z+pytest_cmdline_parse.<locals>.unset_tracing)Z
get_result�optionr
�os�path�abspath�openr �pytest�__version__�py�join�map�strr �version_info�getcwdZ _origargsr r r �
pluginmanagerZenable_tracingr Zadd_cleanup)Zoutcomer! r r )r r r r �pytest_cmdline_parse s
r- c C s� | j jrZtj�tj�}tj� dtj
|f � t| �}|rVx|D ]}tj� |d � q>W dS | j jr~| �
� t| � | �� dS d S )Nz,This is pytest version %s, imported from %s
�
r )r �versionr&