mirror of https://github.com/python/cpython
Provide a little better debug output (#6940)
This commit is contained in:
parent
0ed66df524
commit
273f51f5ca
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue