Skip to content

Commit f33fb85

Browse files
Update src/_pytest/unraisableexception.py
Co-authored-by: Bruno Oliveira <[email protected]>
1 parent a554f2a commit f33fb85

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/_pytest/unraisableexception.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,9 @@ def collect_unraisable() -> None:
6262
except pytest.PytestUnraisableExceptionWarning as e:
6363
# This except happens when the warning is treated as an error (e.g. `-Werror`).
6464
if meta.exc_value is not None:
65-
# exceptions have a better way to show the traceback, but
65+
# Exceptions have a better way to show the traceback, but
6666
# warnings do not, so hide the traceback from the msg and
67-
# set the cause so the traceback shows up in the right place
67+
# set the cause so the traceback shows up in the right place.
6868
e.args = (meta.cause_msg,)
6969
e.__cause__ = meta.exc_value
7070
errors.append(e)

0 commit comments

Comments
 (0)