From 56882db4f7e7ee14ed37d5234c8a06a5a50a7593 Mon Sep 17 00:00:00 2001 From: "Miss Islington (bot)" <31488909+miss-islington@users.noreply.github.com> Date: Thu, 17 May 2018 09:53:24 -0700 Subject: [PATCH] Provide a little better debug output (GH-6940) (#6942) (cherry picked from commit 273f51f5ca9dd0420d327c95281b24078f8feeef) Co-authored-by: Barry Warsaw --- 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 44501d922ad..f377ebcb27b 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)