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

Method addSkip

Lib/unittest/runner.py:123–130  ·  view source on GitHub ↗
(self, test, reason)

Source from the content-addressed store, hash-verified

121 self.stream.flush()
122
123 def addSkip(self, test, reason):
124 super(TextTestResult, self).addSkip(test, reason)
125 t = self._theme
126 if self.showAll:
127 self._write_status(test, f"{t.warn}skipped{t.reset} {reason!r}")
128 elif self.dots:
129 self.stream.write(f"{t.warn}s{t.reset}")
130 self.stream.flush()
131
132 def addExpectedFailure(self, test, err):
133 super(TextTestResult, self).addExpectedFailure(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