| 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 : |
�
��Hg�3 � �| � d Z ddlmZ ddlZddlZddlZddlZddlmZ ddlm Z ddlm
Z
ddlZddlm
Z
ddlmZ dd lmZ dd
lmZ ddlmZ ddlmZ dd
lmZ ddlmZ ddlmZ ddlmZ ddlmZ ddlm Z d!d�Z!d"d�Z"d#d�Z# G d� d� Z$ G d� d� Z% G d� d� Z&d$d�Z'd$d�Z( d%d�Z)d&d�Z*d'd �Z+y)(z4Interactive debugging with PDB, the Python Debugger.� )�annotationsN)�Any)�Callable)� Generator)�outcomes)�
ExceptionInfo)�CaptureManager)�Config)�ConftestImportFailure)�hookimpl)�PytestPluginManager)�Parser)�
UsageError)�Node)�
BaseReport)�CallInfoc � � | j d� \ }}||fS # t $ r}t j | �d�� |�d}~ww xY w)z#Validate syntax of --pdbcls option.�:z) is not in the format 'modname:classname'N)�split�
ValueError�argparse�ArgumentTypeError)�value�modname� classname�es �3C:\Python312\Lib\site-packages\_pytest/debugging.py�_validate_usepdb_clsr sZ � ��"�[�[��-����
�Y���� � ��(�(��i�@�A�
�� ���s � � A�<�Ac � � | j d� }|j dddd�� |j ddd t d
�� |j dd
dd�� y )N�generalz--pdb�usepdb�
store_truezDStart the interactive Python debugger on errors or KeyboardInterrupt)�dest�action�helpz--pdbcls�
usepdb_clszmodulename:classnamez{Specify a custom interactive Python debugger for use with --pdb.For example: --pdbcls=IPython.terminal.debugger:TerminalPdb)r# �metavar�typer% z--trace�tracez(Immediately break when running each test)�getgroup�
_addoptionr )�parser�groups r �pytest_addoptionr. ) sw � ��O�O�I�&�E� ����
��
S� � �
����
�&�
!�F� � �
����
��
7� � � c �
�� dd l �| j d� r$| j j t � d� | j d� r$| j j t � d� t j j �j t j t j f� t j �_ | j t _
| t _ d�fd�}| j |� y )Nr r) �pdbtracer! � pdbinvokec �x �� t j j � \ � _ t _ t _ y �N)� pytestPDB�_saved�pop� set_trace�_pluginmanager�_config)�pdbs �r �finzpytest_configure.<locals>.finR s- �� �
��� � �"�
��M��$��r/ ��return�None)
r; �getvalue�
pluginmanager�register�PdbTrace� PdbInvoker5 r6 �appendr8 r9 r: �add_cleanup)�configr<