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

Class _FailedTest

Lib/unittest/loader.py:22–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20
21
22class _FailedTest(case.TestCase):
23 _testMethodName = None
24
25 def __init__(self, method_name, exception):
26 self._exception = exception
27 super(_FailedTest, self).__init__(method_name)
28
29 def __getattr__(self, name):
30 if name != self._testMethodName:
31 return super(_FailedTest, self).__getattr__(name)
32 def testFailure():
33 raise self._exception
34 return testFailure
35
36
37def _make_failed_import_test(name, suiteClass):

Callers 1

_make_failed_testFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…