From f33fb85e1c738864782187edb73c633775104bb4 Mon Sep 17 00:00:00 2001 From: Thomas Grainger Date: Thu, 21 Nov 2024 20:59:00 +0000 Subject: [PATCH] Update src/_pytest/unraisableexception.py Co-authored-by: Bruno Oliveira --- src/_pytest/unraisableexception.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/_pytest/unraisableexception.py b/src/_pytest/unraisableexception.py index 1a65d00aa1..17abccb959 100644 --- a/src/_pytest/unraisableexception.py +++ b/src/_pytest/unraisableexception.py @@ -62,9 +62,9 @@ def collect_unraisable() -> None: except pytest.PytestUnraisableExceptionWarning as e: # This except happens when the warning is treated as an error (e.g. `-Werror`). if meta.exc_value is not None: - # exceptions have a better way to show the traceback, but + # Exceptions have a better way to show the traceback, but # warnings do not, so hide the traceback from the msg and - # set the cause so the traceback shows up in the right place + # set the cause so the traceback shows up in the right place. e.args = (meta.cause_msg,) e.__cause__ = meta.exc_value errors.append(e)