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

Method test_error_logging

tornado/test/httpserver_test.py:134–141  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

132 )
133
134 def test_error_logging(self):
135 # No stack traces are logged for SSL errors.
136 with ExpectLog(gen_log, "SSL Error") as expect_log:
137 with self.assertRaises((IOError, HTTPError)): # type: ignore
138 self.fetch(
139 self.get_url("/").replace("https:", "http:"), raise_error=True
140 )
141 self.assertFalse(expect_log.logged_stack)
142
143
144class BadSSLOptionsTest(unittest.TestCase):

Callers

nothing calls this directly

Calls 4

ExpectLogClass · 0.90
replaceMethod · 0.80
fetchMethod · 0.45
get_urlMethod · 0.45

Tested by

no test coverage detected