Skip to content

Commit

Permalink
Update src/_pytest/unraisableexception.py
Browse files Browse the repository at this point in the history
Co-authored-by: Bruno Oliveira <[email protected]>
  • Loading branch information
graingert and nicoddemus authored Nov 21, 2024
1 parent a554f2a commit f33fb85
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/_pytest/unraisableexception.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit f33fb85

Please sign in to comment.