Your IP : 216.73.216.196
B
C$�X�� � @ s� d Z ddlZddlZddlZddlZddlZddlZddlZddlZddl Z ddl
m
Z
ddlmZ ddl
mZ ddlZddlZddlmZmZ ddlmZ dd � Zd
d� ZG dd
� d
e�Zdddddddd�Zi fdd�Zejddddddgd�dd � �Zejd!d"� �ZG d#d$� d$�Zd%d&� Z G d'd(� d(�Z!G d)d*� d*�Z"ejd+d,� �Z#ejd-d.�d/d0� �Z$ejd1d2� �Z%e�&d3�Z'G d4d5� d5�Z(G d6d7� d7�Z)d8d9� Z*G d:d;� d;�Z+G d<d-� d-�Z,dS )=zF (disabled by default) support for testing pytest and pytest plugins. � N)�fnmatch)�print_)�Source)�Session�EXIT_OK)�AssertionRewritingHookc C s, | j dddddd� | j ddd d
dd� d S )
Nz--lsof�
store_true�lsofFz"run FD checks if lsof is available)�action�dest�default�helpz--runpytest� inprocess� runpytest)r �
subprocesszYrun pytest sub runs in tests using an 'inprocess' or 'subprocess' (python -m main) method)r r �choicesr
)Z addoption)�parser� r �A/opt/alt/python37/lib/python3.7/site-packages/_pytest/pytester.py�pytest_addoption s
r c C sf yt W n4 tk
r< tj�tj�d��a t �dd�a Y nX | � d�rbt
� }|�� rb| j�
|� d S )N�ocz $py.classz.pyr )�_pytest_fullpath� NameError�os�path�abspath�pytest�__file__�rstrip�replace�getvalue�LsofFdLeakChecker�matching_platform�
pluginmanager�register)�configZcheckerr r r �pytest_configure"