summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_socket.py
diff options
context:
space:
mode:
authorBarry Warsaw <barry@python.org>2018-05-17 15:54:01 (GMT)
committerGitHub <noreply@github.com>2018-05-17 15:54:01 (GMT)
commit273f51f5ca9dd0420d327c95281b24078f8feeef (patch)
tree9d350b5318817f048991d62878a088db6fed2d55 /Lib/test/test_socket.py
parent0ed66df5242138fc599b4735749e55f953d9a1e4 (diff)
downloadcpython-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.py2
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)