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

Method getDescription

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

Source from the content-addressed store, hash-verified

50 self.durations = durations
51
52 def getDescription(self, test):
53 doc_first_line = test.shortDescription()
54 if self.descriptions and doc_first_line:
55 return '\n'.join((str(test), doc_first_line))
56 else:
57 return str(test)
58
59 def startTest(self, test):
60 super(TextTestResult, self).startTest(test)

Calls 3

strFunction · 0.85
shortDescriptionMethod · 0.45
joinMethod · 0.45