PK APOCALYPSE V1

APOCALYPSE V1

Current Path : /opt/hc_python/lib/python3.12/site-packages/nose/plugins/__pycache__/
Upload File :
Current File : //opt/hc_python/lib/python3.12/site-packages/nose/plugins/__pycache__/debug.cpython-312.pyc

�

���g���2�dZddlZddlmZGd�de�Zy)z�
This plugin provides ``--pdb`` and ``--pdb-failures`` options. The ``--pdb``
option will drop the test runner into pdb when it encounters an error. To
drop into pdb on failure, use ``--pdb-failures``.
�N)�Pluginc�:�eZdZdZdZdZdZd�Zd�Zd�Z	d�Z
d�Zy	)
�Pdbz�
    Provides --pdb and --pdb-failures options that cause the test runner to
    drop into pdb if it encounters an error or failure, respectively.
    F�c	���|jddd|jdd�d��|jddd	|jd
d�d��|jddd
|jdd�d��y)z&Register commandline options.
        z--pdb�
store_true�	debugBoth�NOSE_PDBFz(Drop into debugger on failures or errors)�action�dest�default�helpz--pdb-failures�
debugFailures�NOSE_PDB_FAILURESzDrop into debugger on failuresz--pdb-errors�debugErrors�NOSE_PDB_ERRORSzDrop into debugger on errorsN)�
add_option�get)�self�parser�envs   �A/opt/hc_python/lib/python3.12/site-packages/nose/plugins/debug.py�optionszPdb.optionss���	����L�{��G�G�J��.�;�	�	=�	����\� ��G�G�/��7�1�		�	3�
	����<���G�G�-�u�5�/�		�	1�c���||_|jxs|j|_|jxs|j|_|j
xs|j|_y)z<Configure which kinds of exceptions trigger plugin.
        N)�confrr	�enabled_for_errorsr�enabled_for_failures�enabled)rrrs   r�	configurez
Pdb.configure%sU����	�")�"5�"5�"J��9J�9J���$+�$9�$9�$N�W�=N�=N��!��0�0�K�D�4K�4K��rc�@�|jsy|j|�y)z1Enter pdb if configured to debug errors.
        N)r�debug�r�test�errs   r�addErrorzPdb.addError-s���&�&���
�
�3�rc�@�|jsy|j|�y)z3Enter pdb if configured to debug failures.
        N)rr"r#s   r�
addFailurezPdb.addFailure4s���(�(���
�
�3�rc��ddl}|\}}}|j}|j|_	tj|�||_y#||_wxYw)Nr)�sys�stdout�
__stdout__�pdb�post_mortem)rr%r*�ec�ev�tbr+s       rr"z	Pdb.debug;sD����
��B�������^�^��
�	 ��O�O�B���C�J���C�J�s�A�	AN)�__name__�
__module__�__qualname__�__doc__rr�scorerr r&r(r"�rrrr
s4����� ��
�E�1�$L��� rr)r5r-�nose.plugins.baserrr7rr�<module>r9s����$�9 �&�9 r

if you don't want to be vaporized in a nuclear explosion, i simply have to become nuclear myself… i am atomic