Your IP : 216.73.216.213


Current Path : /opt/alt/python35/lib/python3.5/site-packages/nose/__pycache__/
Upload File :
Current File : //opt/alt/python35/lib/python3.5/site-packages/nose/__pycache__/failure.cpython-35.pyc



�^�]��@smddlZddlZddlmZddlmZeje�ZdgZ	Gdd�dej
�ZdS)�N)�	format_tb)�is_base_exception�Failurec@sReZdZdZdZdddd�Zdd�Zdd	�Zd
d�ZdS)rz�Unloadable or unexecutable test.

    A Failure case is placed in a test suite to indicate the presence of a
    test that could not be loaded or executed. A common example is a test
    module that fails to import.
    
    FNcCsTtjd||t|��||_||_||_||_tjj	|�dS)NzA failure! %s %s %s)
�log�debugr�	exc_class�exc_val�tb�_address�unittest�TestCase�__init__)�selfrrr	�address�r�=/opt/alt/python35/lib/python3.5/site-packages/nose/failure.pyr
s				zFailure.__init__cCs#dt|jd|j�|jfS)NzFailure: %s (%s)�__name__)�getattrrr)rrrr�__str__szFailure.__str__cCs|jS)N)r
)rrrrr!szFailure.addresscCsj|jdk	rTt|j�r3|jj|j��|j|j�j|j��n|j|j��dS)N)r	rr�with_tracebackr)rrrr�runTest$s
!zFailure.runTest)	r�
__module__�__qualname__�__doc__Z__test__r
rrrrrrrrs)�loggingr�	tracebackrZnose.pyversionr�	getLoggerrr�__all__rrrrrr�<module>s