We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5bbfb4e commit 96ef7d6Copy full SHA for 96ef7d6
src/_pytest/_code/code.py
@@ -562,10 +562,10 @@ def __repr__(self) -> str:
562
def exconly(self, tryshort: bool = False) -> str:
563
"""Return the exception as a string.
564
565
- When 'tryshort' resolves to True, and the exception is a
566
- _pytest._code._AssertionError, only the actual exception part of
567
- the exception representation is returned (so 'AssertionError: ' is
568
- removed from the beginning).
+ When 'tryshort' resolves to True, and the exception is an
+ AssertionError, only the actual exception part of the exception
+ representation is returned (so 'AssertionError: ' is removed from
+ the beginning).
569
"""
570
lines = format_exception_only(self.type, self.value)
571
text = "".join(lines)
0 commit comments