MCPcopy
hub / github.com/tornadoweb/tornado / test_bad_host

Method test_bad_host

tornado/test/netutil_test.py:53–55  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

51
52 @gen_test
53 def test_bad_host(self):
54 with self.assertRaises(IOError):
55 yield self.resolver.resolve("an invalid domain", 80, socket.AF_UNSPEC)
56
57
58def _failing_getaddrinfo(*args):

Callers

nothing calls this directly

Calls 1

resolveMethod · 0.45

Tested by

no test coverage detected