B t `ùã@sNddlZddlZddlmZddlmZe e¡ZdgZ Gdd„dej ƒZ dS)éN)Ú format_tb)Úis_base_exceptionÚFailurec@s6eZdZdZdZd dd„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. FNcCs<t d||t|ƒ¡||_||_||_||_tj  |¡dS)NzA failure! %s %s %s) ÚlogÚdebugrÚ exc_classÚexc_valÚtbÚ_addressÚunittestÚTestCaseÚ__init__)Úselfrrr Úaddress©rú0/tmp/pip-unpacked-wheel-cjhnoqsi/nose/failure.pyr s zFailure.__init__cCsdt|jd|jƒ|jfS)NzFailure: %s (%s)Ú__name__)Úgetattrrr)rrrrÚ__str__szFailure.__str__cCs|jS)N)r )rrrrr!szFailure.addresscCsH|jdk r8t|jƒr"|j |j¡‚| |j¡ |j¡‚n | |j¡‚dS)N)r rrÚwith_tracebackr)rrrrÚrunTest$s   zFailure.runTest)NN) rÚ __module__Ú __qualname__Ú__doc__Z__test__r rrrrrrrr s  ) Úloggingr Ú tracebackrZnose.pyversionrÚ getLoggerrrÚ__all__r rrrrrÚs