We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 61eb61f commit 91ee5eeCopy full SHA for 91ee5ee
Lib/test/test_socket.py
@@ -209,10 +209,10 @@ def downgrade_malformed_data_warning():
209
with warnings.catch_warnings():
210
# TODO: gh-110012, we should investigate why this warning is happening
211
# and fix it properly.
212
- warnings.simplefilter(
213
- "always:"
214
- r"received malformed or improperly-truncated ancillary data"
215
- ":RuntimeWarning"
+ warnings.filterwarnings(
+ action="always",
+ message=r"received malformed or improperly-truncated ancillary data",
+ category=RuntimeWarning,
216
)
217
yield
218
0 commit comments