HEX
Server: LiteSpeed
System: Linux server318.web-hosting.com 4.18.0-513.18.1.lve.el8.x86_64 #1 SMP Thu Feb 22 12:55:50 UTC 2024 x86_64
User: sahadove (2893)
PHP: 8.2.29
Disabled: NONE
Upload Files
File: //opt/hc_python/lib/python3.12/site-packages/nose/plugins/__pycache__/failuredetail.cpython-312.pyc
�

:��gc��F�dZddlmZddlmZmZddlmZGd�de�Zy)a0
This plugin provides assert introspection. When the plugin is enabled
and a test failure occurs, the traceback is displayed with extra context
around the line in which the exception was raised. Simple variable 
substitution is also performed in the context output to provide more
debugging information.
�)�Plugin)�exc_to_unicode�
force_unicode)�inspect_tracebackc�&�eZdZdZdZd�Zd�Zd�Zy)�
FailureDetailzP
    Plugin that provides extra information in tracebacks of test failures.
    i@c	�R�|jdddd|jd�dd��y	)
z'Register commmandline options.
        z-dz--detailed-errorsz--failure-detail�
store_true�NOSE_DETAILED_ERRORS�detailedErrorszZAdd detail to error output by attempting to evaluate failed asserts [NOSE_DETAILED_ERRORS])�action�default�dest�helpN)�
add_option�get)�self�parser�envs   �I/opt/hc_python/lib/python3.12/site-packages/nose/plugins/failuredetail.py�optionszFailureDetail.optionss8��	����%�'9���G�G�2�3�!�).�		�	/�c�N�|jsy|j|_||_y)zConfigure plugin.
        N)�
can_configurer�enabled�conf)rrrs   r�	configurezFailureDetail.configures$���!�!���-�-�����	rc��|\}}}dt|�}}|r'tt|��}dj||g�}||_|||fS)zLAdd detail from traceback inspection to error message of a failure.
        N�
)rrr�join�tbinfo)r�test�err�ec�ev�tbr!�str_evs        r�
formatFailurezFailureDetail.formatFailure&sW���
��B���~�b�1���
�"�#4�R�#8�9�F��Y�Y���/�0�F�����F�B��rN)�__name__�
__module__�__qualname__�__doc__�scorerrr(�rrrr
s���
�E�	/��
 rrN)	r,�nose.pluginsr�nose.pyversionrr�nose.inspectorrrr.rr�<module>r2s!��� �8�,�# �F�# r