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

Class LoggingResult

Lib/test/test_unittest/support.py:97–107  ·  view source on GitHub ↗

A TestResult implementation which records its method calls.

Source from the content-addressed store, hash-verified

95
96
97class LoggingResult(_BaseLoggingResult):
98 """
99 A TestResult implementation which records its method calls.
100 """
101
102 def addSubTest(self, test, subtest, err):
103 if err is None:
104 self._events.append('addSubTestSuccess')
105 else:
106 self._events.append('addSubTestFailure')
107 super().addSubTest(test, subtest, err)
108
109
110class ResultWithNoStartTestRunStopTestRun(object):

Calls

no outgoing calls

Used in the wild real call sites across dependent graphs

searching dependent graphs…