diff options
author | Barry Warsaw <barry@python.org> | 2018-05-17 15:54:01 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-17 15:54:01 (GMT) |
commit | 273f51f5ca9dd0420d327c95281b24078f8feeef (patch) | |
tree | 9d350b5318817f048991d62878a088db6fed2d55 /Lib/test/test_socket.py | |
parent | 0ed66df5242138fc599b4735749e55f953d9a1e4 (diff) | |
download | cpython-273f51f5ca9dd0420d327c95281b24078f8feeef.zip cpython-273f51f5ca9dd0420d327c95281b24078f8feeef.tar.gz cpython-273f51f5ca9dd0420d327c95281b24078f8feeef.tar.bz2 |
Provide a little better debug output (#6940)
Diffstat (limited to 'Lib/test/test_socket.py')
-rw-r--r-- | Lib/test/test_socket.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_socket.py b/Lib/test/test_socket.py index 44501d9..f377ebc 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) |