HEX
Server: Apache
System: Linux zacp120.webway.host 4.18.0-553.50.1.lve.el8.x86_64 #1 SMP Thu Apr 17 19:10:24 UTC 2025 x86_64
User: govancoz (1003)
PHP: 8.3.26
Disabled: exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
Upload Files
File: //opt/alt/python37/lib/python3.7/site-packages/nose/plugins/__pycache__/debug.cpython-37.pyc
B

�~RS��@s,dZddlZddlmZGdd�de�ZdS)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@sDeZdZdZdZdZdZdd�Zdd�Zdd	�Z	d
d�Z
dd
�ZdS)�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�cCsX|jddd|�dd�dd�|jddd	|�d
d�dd�|jddd
|�dd�dd�dS)z&Register commandline options.
        z--pdb�
store_true�	debugBothZNOSE_PDBFz(Drop into debugger on failures or errors)�action�dest�default�helpz--pdb-failures�
debugFailuresZNOSE_PDB_FAILURESzDrop into debugger on failuresz--pdb-errors�debugErrorsZNOSE_PDB_ERRORSzDrop into debugger on errorsN)�
add_option�get)�self�parser�env�r�C/opt/alt/python37/lib/python3.7/site-packages/nose/plugins/debug.py�optionss


zPdb.optionscCs4||_|jp|j|_|jp|j|_|jp,|j|_dS)z<Configure which kinds of exceptions trigger plugin.
        N)�confrr�enabled_for_errorsr�enabled_for_failures�enabled)rrrrrr�	configure%sz
Pdb.configurecCs|js
dS|�|�dS)z1Enter pdb if configured to debug errors.
        N)r�debug)r�test�errrrr�addError-szPdb.addErrorcCs|js
dS|�|�dS)z3Enter pdb if configured to debug failures.
        N)rr)rrrrrr�
addFailure4szPdb.addFailurecCs<ddl}|\}}}|j}|j|_zt�|�Wd||_XdS)Nr)�sys�stdout�
__stdout__�pdbZpost_mortem)rrrZecZev�tbr rrrr;s
z	Pdb.debugN)�__name__�
__module__�__qualname__�__doc__rr�scorerrrrrrrrrr
sr)r'r"Znose.plugins.baserrrrrr�<module>s