Lines Matching refs:docstring
521 def __init__(self, examples, globs, name, filename, lineno, docstring): argument
529 self.docstring = docstring
551 self.docstring == other.docstring and \
558 return hash((self.docstring, self.name, self.filename, self.lineno))
1039 docstring = obj
1043 docstring = ''
1045 docstring = obj.__doc__
1046 if not isinstance(docstring, str):
1047 docstring = str(docstring)
1049 docstring = ''
1055 if self._exclude_empty and not docstring:
1065 return self._parser.get_doctest(docstring, globs, name,
2603 testsrc = script_from_examples(test.docstring)