Skip to content

Commit 91ee5ee

Browse files
committed
oops, it's not pytest
1 parent 61eb61f commit 91ee5ee

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Lib/test/test_socket.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -209,10 +209,10 @@ def downgrade_malformed_data_warning():
209209
with warnings.catch_warnings():
210210
# TODO: gh-110012, we should investigate why this warning is happening
211211
# and fix it properly.
212-
warnings.simplefilter(
213-
"always:"
214-
r"received malformed or improperly-truncated ancillary data"
215-
":RuntimeWarning"
212+
warnings.filterwarnings(
213+
action="always",
214+
message=r"received malformed or improperly-truncated ancillary data",
215+
category=RuntimeWarning,
216216
)
217217
yield
218218

0 commit comments

Comments
 (0)