mirror of
https://github.com/python/cpython.git
synced 2026-01-06 15:32:22 +00:00
Provide a little better debug output (#6940)
This commit is contained in:
parent
0ed66df524
commit
273f51f5ca
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue