From: Barry Warsaw Date: Thu, 17 May 2018 15:54:01 +0000 (-0400) Subject: Provide a little better debug output (#6940) X-Git-Tag: v3.8.0a1~1818 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=273f51f5ca9dd0420d327c95281b24078f8feeef;p=thirdparty%2FPython%2Fcpython.git Provide a little better debug output (#6940) --- diff --git a/Lib/test/test_socket.py b/Lib/test/test_socket.py index 44501d922ad3..f377ebcb27b2 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)