From 273f51f5ca9dd0420d327c95281b24078f8feeef Mon Sep 17 00:00:00 2001 From: Barry Warsaw Date: Thu, 17 May 2018 11:54:01 -0400 Subject: [PATCH] Provide a little better debug output (#6940) --- Lib/test/test_socket.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/test/test_socket.py b/Lib/test/test_socket.py index 44501d922a..f377ebcb27 100644 --- a/Lib/test/test_socket.py +++ b/Lib/test/test_socket.py @@ -893,7 +893,7 @@ class GeneralModuleTests(unittest.TestCase): ) for addr in ['0.1.1.~1', '1+.1.1.1', '::1q', '::1::2', '1:1:1:1:1:1:1:1:1']: - with self.assertRaises(OSError): + with self.assertRaises(OSError, msg=addr): socket.gethostbyname(addr) with self.assertRaises(OSError, msg=explanation): socket.gethostbyaddr(addr) -- 2.40.0