MCPcopy Index your code
hub / github.com/RustPython/RustPython / TestFailed

Class TestFailed

Lib/test/support/__init__.py:123–131  ·  view source on GitHub ↗

Test failed.

Source from the content-addressed store, hash-verified

121 """Base class for regression test exceptions."""
122
123class TestFailed(Error):
124 """Test failed."""
125 def __init__(self, msg, *args, stats=None):
126 self.msg = msg
127 self.stats = stats
128 super().__init__(msg, *args)
129
130 def __str__(self):
131 return self.msg
132
133class TestFailedWithDetails(TestFailed):
134 """Test failed."""

Callers 10

test_excFunction · 0.90
test_str_formatMethod · 0.90
mkargsMethod · 0.90
doitMethod · 0.90
tearDownModuleFunction · 0.90
check_okFunction · 0.90
__reduce__Method · 0.90
check_okFunction · 0.90
open_urlresourceFunction · 0.85

Calls

no outgoing calls

Tested by 7

test_excFunction · 0.72
test_str_formatMethod · 0.72
mkargsMethod · 0.72
doitMethod · 0.72
tearDownModuleFunction · 0.72
__reduce__Method · 0.72