$56 GRAYBYTE WORDPRESS FILE MANAGER $33

SERVER : vnpttt-amd7f72-h1.vietnix.vn #1 SMP Fri May 24 12:42:50 UTC 2024
SERVER IP : 103.200.23.149 | ADMIN IP 216.73.216.22
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : NONE

/opt/alt/python37/lib/python3.7/site-packages/nose/

HOME
Current File : /opt/alt/python37/lib/python3.7/site-packages/nose//failure.py
import logging
import unittest
from traceback import format_tb
from nose.pyversion import is_base_exception

log = logging.getLogger(__name__)


__all__ = ['Failure']


class Failure(unittest.TestCase):
    """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.
    
    """
    __test__ = False # do not collect
    def __init__(self, exc_class, exc_val, tb=None, address=None):
        log.debug("A failure! %s %s %s", exc_class, exc_val, format_tb(tb))
        self.exc_class = exc_class
        self.exc_val = exc_val
        self.tb = tb
        self._address = address
        unittest.TestCase.__init__(self)

    def __str__(self):
        return "Failure: %s (%s)" % (
            getattr(self.exc_class, '__name__', self.exc_class), self.exc_val)

    def address(self):
        return self._address
    
    def runTest(self):
        if self.tb is not None:
            if is_base_exception(self.exc_val):
                raise self.exc_val.with_traceback(self.tb)
            raise self.exc_class(self.exc_val).with_traceback(self.tb)
        else:
            raise self.exc_class(self.exc_val)

Current_dir [ NOT WRITEABLE ] Document_root [ WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
18 Apr 2024 12.35 AM
root / 996
0755
__pycache__
--
31 Aug 2024 6.49 AM
root / 996
0755
ext
--
31 Aug 2024 6.49 AM
root / 996
0755
plugins
--
31 Aug 2024 6.49 AM
root / 996
0755
sphinx
--
31 Aug 2024 6.49 AM
root / 996
0755
tools
--
31 Aug 2024 6.49 AM
root / 996
0755
__init__.py
0.395 KB
2 Jun 2015 3.43 PM
root / 996
0644
__main__.py
0.141 KB
29 Mar 2014 5.20 PM
root / 996
0644
case.py
12.872 KB
14 Nov 2023 10.11 PM
root / 996
0644
commands.py
6.168 KB
14 Nov 2023 10.11 PM
root / 996
0644
config.py
24.689 KB
14 Nov 2023 10.11 PM
root / 996
0644
core.py
12.765 KB
14 Nov 2023 10.11 PM
root / 996
0644
exc.py
0.367 KB
29 Sep 2012 3.18 PM
root / 996
0644
failure.py
1.243 KB
14 Nov 2023 10.11 PM
root / 996
0644
importer.py
5.838 KB
4 Apr 2015 3.52 PM
root / 996
0644
inspector.py
6.812 KB
14 Nov 2023 10.11 PM
root / 996
0644
loader.py
24.89 KB
14 Nov 2023 10.11 PM
root / 996
0644
proxy.py
6.718 KB
19 Mar 2015 6.44 AM
root / 996
0644
pyversion.py
7.279 KB
14 Nov 2023 10.11 PM
root / 996
0644
result.py
6.583 KB
14 Nov 2023 10.11 PM
root / 996
0644
selector.py
8.774 KB
14 Nov 2023 10.11 PM
root / 996
0644
suite.py
21.791 KB
14 Nov 2023 10.11 PM
root / 996
0644
twistedtools.py
5.41 KB
14 Nov 2023 10.11 PM
root / 996
0644
usage.txt
4.321 KB
4 Apr 2015 3.52 PM
root / 996
0644
util.py
19.857 KB
14 Nov 2023 10.11 PM
root / 996
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2026 CONTACT ME
Static GIF