From dfda2548a56ed73cb78ac076fcdf52f28e456afd Mon Sep 17 00:00:00 2001 From: sobolevn Date: Thu, 28 Sep 2023 10:20:20 +0300 Subject: [PATCH] Use `quiet=True` by default --- Lib/test/test_socket.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Lib/test/test_socket.py b/Lib/test/test_socket.py index 0258b9dc726cbf..b7f05ec8793921 100644 --- a/Lib/test/test_socket.py +++ b/Lib/test/test_socket.py @@ -167,7 +167,8 @@ def socket_setdefaulttimeout(timeout): @contextlib.contextmanager -def catch_malformed_data_warning(quiet=False): +def catch_malformed_data_warning(quiet=True): + # This warning happens on macos and win, but does not always happen on linux. with warnings_helper.check_warnings( ("received malformed or improperly-truncated ancillary data", RuntimeWarning), quiet=quiet,