MCPcopy Index your code
hub / github.com/python/cpython / TestFailed

Class TestFailed

Lib/test/support/__init__.py:125–133  ·  view source on GitHub ↗

Test failed.

Source from the content-addressed store, hash-verified

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

Callers 8

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

Calls

no outgoing calls

Tested by 6

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

Used in the wild real call sites across dependent graphs

searching dependent graphs…