Unverified Kaydet (Commit) 273f51f5 authored tarafından Barry Warsaw's avatar Barry Warsaw Kaydeden (comit) GitHub

Provide a little better debug output (#6940)

üst 0ed66df5
...@@ -893,7 +893,7 @@ class GeneralModuleTests(unittest.TestCase): ...@@ -893,7 +893,7 @@ class GeneralModuleTests(unittest.TestCase):
) )
for addr in ['0.1.1.~1', '1+.1.1.1', '::1q', '::1::2', for addr in ['0.1.1.~1', '1+.1.1.1', '::1q', '::1::2',
'1:1:1:1:1:1:1:1:1']: '1:1:1:1:1:1:1:1:1']:
with self.assertRaises(OSError): with self.assertRaises(OSError, msg=addr):
socket.gethostbyname(addr) socket.gethostbyname(addr)
with self.assertRaises(OSError, msg=explanation): with self.assertRaises(OSError, msg=explanation):
socket.gethostbyaddr(addr) socket.gethostbyaddr(addr)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment