| Server IP : 93.115.150.27 / Your IP : 216.73.216.221 Web Server : LiteSpeed System : Linux host2.azar.host 4.18.0-553.80.1.lve.el8.x86_64 #1 SMP Wed Oct 22 19:29:36 UTC 2025 x86_64 User : dorfakkh ( 1797) PHP Version : 8.1.34 Disable Function : show_source, system, passthru, exec, popen, proc_open, mail MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /opt/alt/python37/lib/python3.7/site-packages/nose/plugins/__pycache__/ |
Upload File : |
B
d�U^ � @ s� d Z ddlmZmZ yddlmZ W nJ ek
rn yddlmZ W n$ ek
rh G dd� de�ZY nX Y nX G dd� de�Z dS ) a^
This plugin installs a SKIP error class for the SkipTest exception.
When SkipTest is raised, the exception will be logged in the skipped
attribute of the result, 'S' or 'SKIP' (verbose) will be output, and
the exception will not be counted as an error or failure. This plugin
is enabled by default but may be disabled with the ``--no-skip`` option.
� )�
ErrorClass�ErrorClassPlugin)�SkipTestc @ s e Zd ZdZdS )r z<Raise this exception to mark a test as skipped.
N)�__name__�
__module__�__qualname__�__doc__� r r �B/opt/alt/python37/lib/python3.7/site-packages/nose/plugins/skip.pyr s r c @ s2 e Zd ZdZdZeeddd�Zdd� Zdd � Z d
S )�Skipa"
Plugin that installs a SKIP error class for the SkipTest
exception. When SkipTest is raised, the exception will be logged
in the skipped attribute of the result, 'S' or 'SKIP' (verbose)
will be output, and the exception will not be counted as an error
or failure.
TZSKIPF)�labelZ isfailurec C s$ d}|j ddd|�|d�dd� dS ) z1
Add my options to command line.
ZNOSE_WITHOUT_SKIPz --no-skip�
store_true�noSkipFz0Disable special handling of SkipTest exceptions.)�action�dest�default�helpN)�
add_option�get)�self�parser�envZenv_optr r r
�options+ s zSkip.optionsc C s* | j s
dS || _t|dd�}|r&d| _dS )zF
Configure plugin. Skip plugin is enabled by default.
Nr F)Z
can_configure�conf�getattr�enabled)r r r �disabler r r
� configure5 s zSkip.configureN)
r r r r r r r �skippedr r r r r r
r s
r N)
r Znose.plugins.errorclassr r Z
unittest.caser �ImportErrorZunittest2.case� Exceptionr r r r r
�<module> s