Skip to content

Commit 273f51f

Browse files
authored
Provide a little better debug output (#6940)
1 parent 0ed66df commit 273f51f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/test/test_socket.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -893,7 +893,7 @@ def test_host_resolution_bad_address(self):
893893
)
894894
for addr in ['0.1.1.~1', '1+.1.1.1', '::1q', '::1::2',
895895
'1:1:1:1:1:1:1:1:1']:
896-
with self.assertRaises(OSError):
896+
with self.assertRaises(OSError, msg=addr):
897897
socket.gethostbyname(addr)
898898
with self.assertRaises(OSError, msg=explanation):
899899
socket.gethostbyaddr(addr)

0 commit comments

Comments
 (0)