| Server IP : 209.209.40.120 / Your IP : 216.73.217.112 Web Server : Microsoft-IIS/10.0 System : Windows NT NEWWWW 10.0 build 17763 (Windows Server 2019) i586 User : NEWWWW$ ( 0) PHP Version : 8.3.30 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/Python312/Lib/site-packages/_pytest/__pycache__/ |
Upload File : |
�
��Hg(� � � � d Z ddlmZ ddlZddlZddlZddlZddlZddlZddl Z ddl
mZ ddlZddl
mZ ddl
mZ ddl
mZ ddl
mZ dd l
mZ dd
l
mZ ddl
mZ ddl
mZ dd
l
mZ ddl
mZ ddlZddlZddlmZ ddlZddlmZ ddlmZ ddlm Z ddlm!Z! ddlm"Z" ddlm#Z# ddl$m%Z% ddl&m'Z' ddl(m)Z) ddl*m+Z+ ddl*m,Z, ddl*m-Z- ddl*m.Z. ddl*m/Z/ ddl0m1Z1 ddl0m2Z2 dd l3m4Z4 dd!l3m5Z5 dd"l6m7Z7 erdd#l8m9Z9 dd$l:m;Z; dDd%�Z<dEd&�Z= dFd'�Z>dGd(�Z?dHd*�Z@dId+�ZAdJd,�ZBdKd-�ZCdLd.�ZD dMd/�ZEdNd0�ZF G d1� d2� ZG G d3� d4eH� ZI G d5� d6eJ� ZKej� G d7� d8eeeMf � � ZNe G d9� d:ej� � � ZPe G d;� d)ej� � � ZRdOd<�ZS ej� d=�>� G d?� d@� � ZTdAdB� dPdC�ZUy)QzHCore implementation of the testing process: init, session, runtest loop.� )�annotationsN)�Path)�AbstractSet)�Callable)�Dict)�final)�Iterable)�Iterator)�Literal)�overload)�Sequence)�
TYPE_CHECKING)�nodes)�Config)�
directory_arg)�ExitCode)�hookimpl)�PytestPluginManager)�
UsageError)�Parser)�PathAwareHookProxy)�exit��absolutepath)�bestrelpath��
fnmatch_ex)�safe_exists)�scandir)�
CollectReport)�
TestReport)�collect_one_node)�
SetupState)�
PytestWarning)�Self)�FixtureManagerc
�� � | j dddg d��� | j dddg �� | j dd � }|j d
ddd
dd�� | j d� }|j dddd�� | j ddd�� |j dddt d
dd� � |j d!d"d#�� |j d$d"d%�� |j d&d"d'�� |j d(d)d*t
d+d,�-� |j d.d"d/d0d1�2� |j d3dd4d5�6� | j d7d8� }|j d9d:d;d"d<�� |j d=d"d>�� |j d?dd@dA�B� |j dCdd@dD�B� |j dEddFdG�B� |j dHdId dJt
j t dH�K� dL�M� |j dNd"dOd/dP�Q� |j dRdSd"dTd/dU�Q� |j dVd"dWd/dX�Q� |j dYdZg d[�d\d]�^� | j d_d`d/da�b� | j dcdd� }|j dedfd t dJdg�h� y )iN�
norecursedirsz)Directory patterns to avoid for recursion�args) z*.eggz.*�_darcs�build�CVS�dist�node_modules�venvz{arch})�type�default� testpathszZDirectories to search for tests when no files or directories are given on the command line�generalzRunning and selection optionsz-xz--exitfirst�store_const�maxfail� z,Exit instantly on first error or failed test)�action�dest�const�helpzpytest-warningsz-Wz--pythonwarnings�appendz<Set which warnings to report, see -W option of Python itself)r7 r: �filterwarnings�linelistz_Each line specifies a pattern for warnings.filterwarnings. Processed after -W/--pythonwarnings.)r0 r: z --maxfail�num�storer z'Exit after first num failures or errors)�metavarr7 r0 r8 r1 r: z--strict-config�
store_truezbAny warnings encountered while parsing the `pytest` section of the configuration file raise errorsz--strict-markerszVMarkers not registered in the `markers` section of the configuration file raise errorsz--strictz&(Deprecated) alias to --strict-markersz-cz
--config-file�FILE�inifilenamezcLoad configuration from `FILE` instead of trying to locate one of the implicit configuration files.)r@ r0 r8 r: z--continue-on-collection-errorsF�continue_on_collection_errorsz4Force test execution even if collection errors occur)r7 r1 r8 r: z --rootdir�rootdirz�Define root directory for tests. Can be relative path: 'root_dir', './root_dir', 'root_dir/another_dir/'; absolute path: '/home/user/root_dir'; path with variables: '$HOME/root_dir'.)r7 r8 r: �collect�
collectionz
--collectonlyz--collect-onlyz--coz&Only collect tests, don't execute themz--pyargsz1Try to interpret all arguments as Python packagesz--ignore�pathz-Ignore path during collection (multi-allowed))r7 r@ r: z
--ignore-globz5Ignore path pattern during collection (multi-allowed)z
--deselect�
nodeid_prefixzDDeselect item (via node id prefix) during collection (multi-allowed)z--confcutdir�
confcutdir�dir)�optnamez1Only load conftest.py's relative to specified dir)r8 r1 r@ r0 r: z--noconftest�
noconftestz Don't load any conftest.py files)r7 r8 r1 r: z--keepduplicatesz--keep-duplicates�keepduplicateszKeep duplicate testsz--collect-in-virtualenv�collect_in_virtualenvz2Don't ignore tests in a local virtualenv directoryz
--import-mode�prepend)rP r; � importlib�
importmodez\Prepend/append to sys.path when importing test modules and conftest files. Default: prepend.)r1 �choicesr8 r: �consider_namespace_packages�boolzEConsider namespace packages when resolving module names during import)r0 r1 r: �debugconfigz(test session debugging and configurationz
--basetemp�basetempz^Base temporary directory for this test run. (Warning: this directory is removed if it exists.))r8 r1 r0 r@ r: )
�addini�getgroup�
_addoption� addoption�int�str� functools�partialr �validate_basetemp)�parser�groups �.C:\Python312\Lib\site-packages\_pytest/main.py�pytest_addoptionrd 9 s� � �
�M�M��3�
�
� � � �M�M�� �
�� � �
�O�O�I�'F�G�E� ������
��
;�
� �
�O�O�-�.�E� �O�O����
K� � � �M�M��
�/� � �
������
�
��
6� � �
�����*� � �
������ � �
�����
5� � �
������
�
�(�
� �
���)���
,�
C� � �
�����
�� � �
�O�O�I�|�4�E� �O�O�����
5� � �
�O�O���
@� � �
�O�O����
<� � �
�O�O����
D� � �
�O�O����
S� � �
�O�O��
���
�
�
�}�n�
E�
@�
� �
�O�O���
��
/� � �
�O�O����
��
#�
� �
�O�O�!��
$��
A� � �
�O�O���2�
�#� � � �M�M�%�
��
T� � �
�O�O�M�+U�V�E� �O�O��
��
��
A� �
� c �x � d}| st j |� �dd�} |t j � t | � j � � rt j |� � |t j � j � t | � j � � rt j |� �| S )NzWbasetemp must not be empty, the current working directory or any parent directory of itc �* � | |k( ry|| j v S )z,Return whether query is an ancestor of base.T)�parents)�base�querys rc �is_ancestorz&validate_basetemp.<locals>.is_ancestor� s � ��5�=������$�$re )ri r rj r �returnrU )�argparse�ArgumentTypeErrorr �cwd�absolute�resolve)rH �msgrk s rc r` r` � s� � �
c�C� ��(�(��-�-�%� �4�8�8�:�t�D�z�2�2�4�5��(�(��-�-� �4�8�8�:�%�%�'��d��);�);�)=�>��(�(��-�-��Kre c � � t j | � }t j |_ d} | j � d}| j j |�� d} || |� xs d|_ d}tI jJ |jL � |dk\ r( | j jO ||j �
� | jQ � |j S # t $ r t j |_ � t $ r t j |_ Y ��t t j f$ r� t j j"