U é üeùã@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ú:/opt/hc_python/lib/python3.8/site-packages/nose/failure.pyr s zFailure.__init__cCsdt|jd|jƒ|jfS)NzFailure: %s (%s)Ú__name__)Úgetattrrr©rrrrÚ__str__sÿzFailure.__str__cCs|jS©N)r rrrrr!szFailure.addresscCsH|jdk r8t|jƒr"|j |j¡‚| |j¡ |j¡‚n | |j¡‚dSr)r rrÚwith_tracebackrrrrrÚrunTest$s   zFailure.runTest)NN) rÚ __module__Ú __qualname__Ú__doc__Z__test__r rrrrrrrr s  ) Úloggingr Ú tracebackrZnose.pyversionrÚ getLoggerrrÚ__all__r rrrrrÚs