Skip to content

Commit d44e42e

Browse files
committed
doc: improve warning_record_to_str
1 parent 6352cf2 commit d44e42e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/_pytest/warnings.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,9 @@ def catch_warnings_for_item(config, ihook, when, item):
103103

104104

105105
def warning_record_to_str(warning_message):
106-
"""Convert a warnings.WarningMessage to a string, taking in account a lot of unicode shenaningans in Python 2.
106+
"""Convert a warnings.WarningMessage to a string.
107107
108+
This takes lot of unicode shenaningans into account for Python 2.
108109
When Python 2 support is dropped this function can be greatly simplified.
109110
"""
110111
warn_msg = warning_message.message

0 commit comments

Comments
 (0)