GRAYBYTE WORDPRESS FILE MANAGER2438

Server IP : 198.54.121.189 / Your IP : 216.73.216.140
System : Linux premium69.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
PHP Version : 7.4.33
Disable Function : NONE
cURL : ON | WGET : ON | Sudo : OFF | Pkexec : OFF
Directory : /opt/hc_python/lib/python3.12/site-packages/nose/plugins/
Upload Files :
Current_dir [ Not Writeable ] Document_root [ Writeable ]

Command :


Current File : /opt/hc_python/lib/python3.12/site-packages/nose/plugins//failuredetail.py
"""
This plugin provides assert introspection. When the plugin is enabled
and a test failure occurs, the traceback is displayed with extra context
around the line in which the exception was raised. Simple variable 
substitution is also performed in the context output to provide more
debugging information.
"""
    
from nose.plugins import Plugin
from nose.pyversion import exc_to_unicode, force_unicode
from nose.inspector import inspect_traceback

class FailureDetail(Plugin):
    """
    Plugin that provides extra information in tracebacks of test failures.
    """
    score = 1600 # before capture
    
    def options(self, parser, env):
        """Register commmandline options.
        """
        parser.add_option(
            "-d", "--detailed-errors", "--failure-detail",
            action="store_true",
            default=env.get('NOSE_DETAILED_ERRORS'),
            dest="detailedErrors", help="Add detail to error"
            " output by attempting to evaluate failed"
            " asserts [NOSE_DETAILED_ERRORS]")

    def configure(self, options, conf):
        """Configure plugin.
        """
        if not self.can_configure:
            return
        self.enabled = options.detailedErrors
        self.conf = conf

    def formatFailure(self, test, err):
        """Add detail from traceback inspection to error message of a failure.
        """
        ec, ev, tb = err
        tbinfo, str_ev = None, exc_to_unicode(ev)

        if tb:
            tbinfo = force_unicode(inspect_traceback(tb))
            str_ev = '\n'.join([str_ev, tbinfo])
        test.tbinfo = tbinfo
        return (ec, str_ev, tb)


[ Back ]
Name
Size
Last Modified
Owner / Group
Permissions
Options
..
--
April 04 2025 08:00:19
root / root
0755
__pycache__
--
April 04 2025 08:00:19
root / root
0755
__init__.py
6.144 KB
April 04 2025 08:00:19
root / root
0644
allmodules.py
1.68 KB
April 04 2025 08:00:19
root / root
0644
attrib.py
9.481 KB
April 04 2025 08:00:19
root / root
0644
base.py
25.447 KB
April 04 2025 08:00:19
root / root
0644
builtin.py
0.997 KB
April 04 2025 08:00:19
root / root
0644
capture.py
3.285 KB
April 04 2025 08:00:19
root / root
0644
collect.py
3.082 KB
April 04 2025 08:00:19
root / root
0644
cover.py
11.403 KB
April 04 2025 08:00:19
root / root
0644
debug.py
2.219 KB
April 04 2025 08:00:19
root / root
0644
deprecated.py
1.515 KB
April 04 2025 08:00:19
root / root
0644
doctests.py
17.068 KB
April 04 2025 08:00:19
root / root
0644
errorclass.py
7.104 KB
April 04 2025 08:00:19
root / root
0644
failuredetail.py
1.597 KB
April 04 2025 08:00:19
root / root
0644
isolate.py
3.668 KB
April 04 2025 08:00:19
root / root
0644
logcapture.py
9.139 KB
April 04 2025 08:00:19
root / root
0644
manager.py
15.212 KB
April 04 2025 08:00:19
root / root
0644
multiprocess.py
34.459 KB
April 04 2025 08:00:19
root / root
0644
plugintest.py
13.216 KB
April 04 2025 08:00:19
root / root
0644
prof.py
5.231 KB
April 04 2025 08:00:19
root / root
0644
skip.py
2.092 KB
April 04 2025 08:00:19
root / root
0644
testid.py
9.685 KB
April 04 2025 08:00:19
root / root
0644
xunit.py
11.372 KB
April 04 2025 08:00:19
root / root
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025
CONTACT ME
Static GIF