MCPcopy Index your code
hub / github.com/RustPython/RustPython / shortDescription

Method shortDescription

Lib/unittest/case.py:521–529  ·  view source on GitHub ↗

Returns a one-line description of the test, or None if no description has been provided. The default implementation of this method returns the first line of the specified test method's docstring.

(self)

Source from the content-addressed store, hash-verified

519 return result.TestResult()
520
521 def shortDescription(self):
522 """Returns a one-line description of the test, or None if no
523 description has been provided.
524
525 The default implementation of this method returns the first line of
526 the specified test method's docstring.
527 """
528 doc = self._testMethodDoc
529 return doc.strip().split("\n")[0].strip() if doc else None
530
531
532 def id(self):

Calls 2

stripMethod · 0.45
splitMethod · 0.45