Skip to content

Commit a3310cf

Browse files
committed
text
1 parent 1d189fb commit a3310cf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/helpers/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ def no_warning_call(warning_type, match: Optional[str] = None):
124124

125125
try:
126126
w = record.pop(warning_type)
127-
if not ((match and match in str(w.message)) or w):
127+
if not ((match and match in w.text) or w):
128128
return
129129
except AssertionError:
130130
# no warning raised

0 commit comments

Comments
 (0)