[Python-checkins] Provide a little better debug output (#6940)
Barry Warsaw
webhook-mailer at python.org
Thu May 17 11:54:11 EDT 2018
https://github.com/python/cpython/commit/273f51f5ca9dd0420d327c95281b24078f8feeef
commit: 273f51f5ca9dd0420d327c95281b24078f8feeef
branch: master
author: Barry Warsaw <barry at python.org>
committer: GitHub <noreply at github.com>
date: 2018-05-17T11:54:01-04:00
summary:
Provide a little better debug output (#6940)
files:
M Lib/test/test_socket.py
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 @@ def test_host_resolution_bad_address(self):
)
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)
More information about the Python-checkins
mailing list