Skip to content

Commit 56882db

Browse files
Provide a little better debug output (GH-6940) (#6942)
(cherry picked from commit 273f51f) Co-authored-by: Barry Warsaw <[email protected]>
1 parent 6417d33 commit 56882db

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)