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

Method addSuccess

Lib/unittest/runner.py:96–103  ·  view source on GitHub ↗
(self, test)

Source from the content-addressed store, hash-verified

94 super(TextTestResult, self).addSubTest(test, subtest, err)
95
96 def addSuccess(self, test):
97 super(TextTestResult, self).addSuccess(test)
98 t = self._theme
99 if self.showAll:
100 self._write_status(test, f"{t.passed}ok{t.reset}")
101 elif self.dots:
102 self.stream.write(f"{t.passed}.{t.reset}")
103 self.stream.flush()
104
105 def addError(self, test, err):
106 super(TextTestResult, self).addError(test, err)

Callers

nothing calls this directly

Calls 4

_write_statusMethod · 0.95
superClass · 0.85
writeMethod · 0.45
flushMethod · 0.45

Tested by

no test coverage detected