From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Thu, 17 May 2018 16:53:24 +0000 (-0700) Subject: Provide a little better debug output (GH-6940) (#6942) X-Git-Tag: v3.7.0b5~95 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=56882db4f7e7ee14ed37d5234c8a06a5a50a7593;p=thirdparty%2FPython%2Fcpython.git Provide a little better debug output (GH-6940) (#6942) (cherry picked from commit 273f51f5ca9dd0420d327c95281b24078f8feeef) Co-authored-by: Barry Warsaw --- 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)