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

Method addUnexpectedSuccess

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

Source from the content-addressed store, hash-verified

140 self.stream.flush()
141
142 def addUnexpectedSuccess(self, test):
143 super(TextTestResult, self).addUnexpectedSuccess(test)
144 t = self._theme
145 if self.showAll:
146 self.stream.writeln(f"{t.fail}unexpected success{t.reset}")
147 self.stream.flush()
148 elif self.dots:
149 self.stream.write(f"{t.fail}u{t.reset}")
150 self.stream.flush()
151
152 def printErrors(self):
153 t = self._theme

Callers

nothing calls this directly

Calls 4

superClass · 0.85
writelnMethod · 0.45
flushMethod · 0.45
writeMethod · 0.45

Tested by

no test coverage detected