$58 GRAYBYTE WORDPRESS FILE MANAGER $77

SERVER : premium201.web-hosting.com #1 SMP Wed Mar 26 12:08:09 UTC 2025
SERVER IP : 104.21.15.130 | ADMIN IP 216.73.216.174
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : NONE

/opt/hc_python/lib/python3.12/site-packages/nose/plugins/

HOME
Current File : /opt/hc_python/lib/python3.12/site-packages/nose/plugins//skip.py
"""
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.
"""

from nose.plugins.errorclass import ErrorClass, ErrorClassPlugin


# on SkipTest:
#  - unittest SkipTest is first preference, but it's only available
#    for >= 2.7
#  - unittest2 SkipTest is second preference for older pythons.  This
#    mirrors logic for choosing SkipTest exception in testtools
#  - if none of the above, provide custom class
try:
    from unittest.case import SkipTest
except ImportError:
    try:
        from unittest2.case import SkipTest
    except ImportError:
        class SkipTest(Exception):
            """Raise this exception to mark a test as skipped.
            """
            pass


class Skip(ErrorClassPlugin):
    """
    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.
    """
    enabled = True
    skipped = ErrorClass(SkipTest,
                         label='SKIP',
                         isfailure=False)

    def options(self, parser, env):
        """
        Add my options to command line.
        """
        env_opt = 'NOSE_WITHOUT_SKIP'
        parser.add_option('--no-skip', action='store_true',
                          dest='noSkip', default=env.get(env_opt, False),
                          help="Disable special handling of SkipTest "
                          "exceptions.")

    def configure(self, options, conf):
        """
        Configure plugin. Skip plugin is enabled by default.
        """
        if not self.can_configure:
            return
        self.conf = conf
        disable = getattr(options, 'noSkip', False)
        if disable:
            self.enabled = False



Current_dir [ NOT WRITEABLE ] Document_root [ WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
4 Apr 2025 8.03 AM
root / root
0755
__pycache__
--
4 Apr 2025 8.03 AM
root / root
0755
__init__.py
6.144 KB
4 Apr 2025 8.03 AM
root / root
0644
allmodules.py
1.68 KB
4 Apr 2025 8.03 AM
root / root
0644
attrib.py
9.481 KB
4 Apr 2025 8.03 AM
root / root
0644
base.py
25.447 KB
4 Apr 2025 8.03 AM
root / root
0644
builtin.py
0.997 KB
4 Apr 2025 8.03 AM
root / root
0644
capture.py
3.285 KB
4 Apr 2025 8.03 AM
root / root
0644
collect.py
3.082 KB
4 Apr 2025 8.03 AM
root / root
0644
cover.py
11.403 KB
4 Apr 2025 8.03 AM
root / root
0644
debug.py
2.219 KB
4 Apr 2025 8.03 AM
root / root
0644
deprecated.py
1.515 KB
4 Apr 2025 8.03 AM
root / root
0644
doctests.py
17.068 KB
4 Apr 2025 8.03 AM
root / root
0644
errorclass.py
7.104 KB
4 Apr 2025 8.03 AM
root / root
0644
failuredetail.py
1.597 KB
4 Apr 2025 8.03 AM
root / root
0644
isolate.py
3.668 KB
4 Apr 2025 8.03 AM
root / root
0644
logcapture.py
9.139 KB
4 Apr 2025 8.03 AM
root / root
0644
manager.py
15.212 KB
4 Apr 2025 8.03 AM
root / root
0644
multiprocess.py
34.459 KB
4 Apr 2025 8.03 AM
root / root
0644
plugintest.py
13.216 KB
4 Apr 2025 8.03 AM
root / root
0644
prof.py
5.231 KB
4 Apr 2025 8.03 AM
root / root
0644
skip.py
2.092 KB
4 Apr 2025 8.03 AM
root / root
0644
testid.py
9.685 KB
4 Apr 2025 8.03 AM
root / root
0644
xunit.py
11.372 KB
4 Apr 2025 8.03 AM
root / root
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025 CONTACT ME
Static GIF