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

Method __init__

Lib/unittest/runner.py:40–50  ·  view source on GitHub ↗

Construct a TextTestResult. Subclasses should accept **kwargs to ensure compatibility as the interface changes.

(self, stream, descriptions, verbosity, *, durations=None)

Source from the content-addressed store, hash-verified

38 separator2 = '-' * 70
39
40 def __init__(self, stream, descriptions, verbosity, *, durations=None):
41 """Construct a TextTestResult. Subclasses should accept **kwargs
42 to ensure compatibility as the interface changes."""
43 super(TextTestResult, self).__init__(stream, descriptions, verbosity)
44 self.stream = stream
45 self.showAll = verbosity > 1
46 self.dots = verbosity == 1
47 self.descriptions = descriptions
48 self._theme = get_theme(tty_file=stream).unittest
49 self._newline = True
50 self.durations = durations
51
52 def getDescription(self, test):
53 doc_first_line = test.shortDescription()

Callers

nothing calls this directly

Calls 2

get_themeFunction · 0.90
superClass · 0.85

Tested by

no test coverage detected