diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/_pytest/outcomes.py | 2 | ||||
-rw-r--r-- | src/_pytest/terminal.py | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/src/_pytest/outcomes.py b/src/_pytest/outcomes.py index f0607cbd8..8f6203fd7 100644 --- a/src/_pytest/outcomes.py +++ b/src/_pytest/outcomes.py @@ -38,7 +38,7 @@ class OutcomeException(BaseException): self.pytrace = pytrace def __repr__(self) -> str: - if self.msg: + if self.msg is not None: return self.msg return f"<{self.__class__.__name__} instance>" diff --git a/src/_pytest/terminal.py b/src/_pytest/terminal.py index 39adfaaa3..f5d4e1f8d 100644 --- a/src/_pytest/terminal.py +++ b/src/_pytest/terminal.py @@ -1403,4 +1403,6 @@ def _get_raw_skip_reason(report: TestReport) -> str: _, _, reason = report.longrepr if reason.startswith("Skipped: "): reason = reason[len("Skipped: ") :] + elif reason == "Skipped": + reason = "" return reason |