관리-도구
편집 파일: main.cpython-311.pyc
� �܋f�~ � �4 � d Z ddlZddlZddlZddlZddlZddlZddlZddlm Z ddl mZ ddl mZ ddl m Z ddl mZ ddl mZ dd l mZ dd l mZ ddl mZ ddl mZ dd l mZ ddl mZ ddl mZ ddlZddlmZ ddlmZ ddlmZ ddlmZ 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. dd l/m0Z0 dd!l/m1Z1 dd"l2m3Z3 dd#l2m4Z4 erdd$l5m6Z6 d%e%d&dfd'�Z7d(e8d&e8fd)�Z9d*ed+eed,geee:e f f d&ee:e f fd-�Z;d*ed&ee:e f fd.�Z<d*ed/d,d&eee:e f fd0�Z=dId1�Z>d/d,d&e?fd2�Z@d(e d&e?fd3�ZAd4e d*ed&ee? fd5�ZBd6eejC d*ed&dfd7�ZD G d8� d9� � ZE G d:� d;eF� � ZG G d<� d=eH� � ZIejJ G d>� d?ee e8f � � � � ZKe G d@� d,ejL � � � � ZMdAe8d&e8fdB�ZNdCdD�dEe dFe8dGe?d&ee ee8 f fdH�ZOdS )JzHCore implementation of the testing process: init, session, runtest loop.� N)�Path)�Callable)�Dict)� FrozenSet)�Iterator)�List)�Optional)�Sequence)�Set)�Tuple)�Type)� TYPE_CHECKING)�Union)�nodes)�final)�overload)�Config)� directory_arg)�ExitCode)�hookimpl)�PytestPluginManager)� UsageError)�Parser)�FixtureManager)�exit��absolutepath)�bestrelpath�� fnmatch_ex)�visit)� CollectReport)� TestReport)�collect_one_node)� SetupState)�Literal�parser�returnc � � | � dddg d��� � | � dddg �� � | � dd � � }|� d ddd dd�� � | � d� � }|� dddd�� � | � ddd�� � |� dddt d dd� � � |� d!d"d#�� � |� d$d"d%�� � |� d&d"d'�� � |� d(d)d*t d+d,�-� � |� d.d"d/d0d1�2� � |� d3dd4d5�6� � | � d7d8� � }|� d9d:d;d"d<�� � |� d=d"d>�� � |� d?dd@dA�B� � |� dCdd@dD�B� � |� dEddFdG�B� � |� dHdId dJt j t dH�K� � dL�M� � |� dNd"dOd/dP�Q� � |� dRdSd"dTd/dU�Q� � |� dVd"dWd/dX�Q� � |� dYdZg d[�d\d]�^� � | � d_d`� � }|� dadbd t dJdc�d� � d S )eN� 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)r9 r<