관리-도구
편집 파일: __init__.cpython-311.pyc
� �܋f� � �� � d Z ddlZddlZddlZddlZddlZddlZddlZddl Z ddl Z ddlZddlZddl Z ddlZddlmZ ddlmZ ddlmZ ddl mZ ddl mZ ddlmZ dd lmZ dd lmZ ddlmZ ddlmZ dd lmZ ddlmZ ddlmZ ddlm Z ddlm!Z! ddlm"Z" ddlm#Z# ddlm$Z$ ddlm%Z% ddlm&Z& ddlm'Z' ddlm(Z( ddl)m*Z* ddl)m+Z+ ddl)m,Z, ddl-Z.ddl/Z.ddl0Z.ddl1m2Z2 ddl1m3Z3 ddl4m5Z5 dd l-m6Z6 dd!l-m7Z7 dd"l8m9Z9 dd#l:m;Z; dd$l:m<Z< dd%l=m>Z> dd&l=m?Z? dd'l@mAZA dd(l@mBZB dd)l@mCZC dd*l@mDZD dd+l@mEZE dd,lFmGZG dd-lHmIZI dd.lHmJZJ e'rdd/lKmLZL dd0lMmNZN dd1lOmPZP eQZR e*d2� � ZS e+d2� � ZTe; G d3� d4ejU � � � � ZV G d5� d6eW� � ZXd7e.jY jZ d8e[fd9�Z\ d�d:e!e(e e] d;f d<e!e"e(e]eRf d8e(e^eVf fd=�Z_d8e^fd>�Z` G d?� d@� � ZadAe]dBe]d8e]fdC�ZbdAe]dBe]d8e]fdD�ZcdEZdeddFdGdHdIdJdKdLdMdNdOdPdQdRdSdTdUdVdWdXdYdZd[d\d]geje d^k rd_d`gng �da�R z Zf egef� � Zheh�i db� � eh�i dc� � d�d:e!e e] d<e!e"e(e]eRf d8ddfde�Zjd�dg�Zk d�d:e!e(e e] d;f d<e!e"e(e]eRf d8ddfdh�ZldAed8efdi�Zmdjedke]dle%e]dmf d8ee]e[f fdn�Zne; G do� dfe,� � � � Zodpe(de jp e]e"e] f d8e e] fdq�Zqdre]d8dfds�Zr G dt� du� � Zs es� � Ztdvee] d8ee] fdw�Zue; G dx� dd� � � � Zvd8e[fdy�Zw d�dzevd{e!e$ d8e9fd|�Zxd}e]d8e[fd~�Zy ed��� � d�e]d�e[d8e%d�e]e&ez e]e^f fd��� � Z{d�e]d8e&ez fd��Z|d�ee] d�ee] d8dfd��Z}dS )�z:Command line options, ini-file and conftest.py processing.� N)� lru_cache)�Path)�dedent)�FunctionType)� TracebackType)�Any)�Callable)�cast)�Dict)� Generator)�IO)�Iterable)�Iterator)�List)�Optional)�Sequence)�Set)�TextIO)�Tuple)�Type)� TYPE_CHECKING)�Union)�HookimplMarker)�HookspecMarker)� PluginManager� )� PrintHelp)� UsageError)�determine_setup)� ExceptionInfo)�filter_traceback)�TerminalWriter)�final)�importlib_metadata)�fail)�Skipped)�absolutepath)�bestrelpath)�import_path)� ImportMode)�resolve_package_path)�Stash)�PytestConfigWarning)�warn_explicit_for)�_TracebackStyle)�TerminalReporter)�Argument�pytestc �* � e Zd ZdZdZdZdZdZdZdZ dS ) �ExitCodez�Encodes the valid exit codes by pytest. Currently users and plugins may supply other exit codes as well. .. versionadded:: 5.0 r r � � � � N) �__name__� __module__�__qualname__�__doc__�OK�TESTS_FAILED�INTERRUPTED�INTERNAL_ERROR�USAGE_ERROR�NO_TESTS_COLLECTED� � �h/builddir/build/BUILD/cloudlinux-venv-1.0.6/venv/lib/python3.11/site-packages/_pytest/config/__init__.pyr4 r4 T s; � � � � � �� � �B��L��K��N��K����rD r4 c �V � � e Zd Zdedeee eef ddf� fd�Zde fd�Z � xZS )�ConftestImportFailure�path�excinfo�returnNc �h �� t � � � ||� � || _ || _ d S �N)�super�__init__rH rI )�selfrH rI � __class__s �rE rN zConftestImportFailure.__init__l s1 �� � ������w�'�'�'��� �����rD c �p � d� | j d j | j d | j � � S )Nz{}: {} (from {})r r )�formatrI r9 rH �rO s rE �__str__zConftestImportFailure.__str__u s2 � �!�(�(��L��O�$�d�l�1�o�t�y� � � rD )r9 r: r; r r r � Exceptionr rN �strrT � __classcell__�rP s @rE rG rG k s� �� � � � � ���� �t�I�� �=�@�A�� � � � � � � � �� � � � � � � � rD rG �entryrJ c � � t | � � o2dt | j � � � t j � � vS )z�Filter tracebacks entries which point to pytest internals or importlib. Make a special case for importlib because we use it to import test modules and conftest files in _pytest.pathlib.import_path. � importlib)r! rV rH �split�os�sep)rY s rE �,filter_traceback_for_conftest_import_failurer_ { s6 � � �E�"�"�W�{�#�e�j�/�/�:O�:O�PR�PV�:W�:W�'W�WrD �argszos.PathLike[str]�pluginsc � � t | |� � } |j � |�� � } t |� � |� � � S # t $ r |cY |� � � S w xY w# |� � � w xY w# t $ �r }t j |j � � }t t j � � }|� d|j � d�d�� � |j � t"