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

Method printErrorList

Lib/unittest/runner.py:169–178  ·  view source on GitHub ↗
(self, flavour, errors)

Source from the content-addressed store, hash-verified

167 self.stream.flush()
168
169 def printErrorList(self, flavour, errors):
170 t = self._theme
171 for test, err in errors:
172 self.stream.writeln(self.separator1)
173 self.stream.writeln(
174 f"{flavour}{t.fail_info}: {self.getDescription(test)}{t.reset}"
175 )
176 self.stream.writeln(self.separator2)
177 self.stream.writeln("%s" % err)
178 self.stream.flush()
179
180
181class TextTestRunner(object):

Callers 1

printErrorsMethod · 0.95

Calls 3

getDescriptionMethod · 0.95
writelnMethod · 0.45
flushMethod · 0.45

Tested by

no test coverage detected