(self)
| 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 | |
| 144 | class BadSSLOptionsTest(unittest.TestCase): |