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

Method addFailure

Lib/unittest/runner.py:114–121  ·  view source on GitHub ↗
(self, test, err)

Source from the content-addressed store, hash-verified

112 self.stream.flush()
113
114 def addFailure(self, test, err):
115 super(TextTestResult, self).addFailure(test, err)
116 t = self._theme
117 if self.showAll:
118 self._write_status(test, f"{t.fail}FAIL{t.reset}")
119 elif self.dots:
120 self.stream.write(f"{t.fail}F{t.reset}")
121 self.stream.flush()
122
123 def addSkip(self, test, reason):
124 super(TextTestResult, self).addSkip(test, reason)

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