def exconly(self, tryshort=False):
lines = format_exception_only(self.type, self.value)<EOL>text = "<STR_LIT>".join(lines)<EOL>text = text.rstrip()<EOL>if tryshort:<EOL><INDENT>if text.startswith(self._striptext):<EOL><INDENT>text = text[len(self._striptext) :]<EOL><DEDENT><DEDENT>return text<EOL>
return the exception as a string

            when 'tryshort' resolves to True, and the exception is a
            _pytest._code._AssertionError, only the actual exception part of
            the exception representation is returned (so 'AssertionError: ' is
            removed from the beginning)