Skip to content

Commit

Permalink
Provide a little better debug output (python#6940)
Browse files Browse the repository at this point in the history
  • Loading branch information
warsaw authored May 17, 2018
1 parent 0ed66df commit 273f51f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Lib/test/test_socket.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 273f51f

Please sign in to comment.