(self)
| 1843 | class ExceptionHandlerTest(SimpleHandlerTestCase): |
| 1844 | class Handler(RequestHandler): |
| 1845 | def get(self): |
| 1846 | exc = self.get_argument("exc") |
| 1847 | if exc == "http": |
| 1848 | raise HTTPError(410, "no longer here") |
| 1849 | elif exc == "zero": |
| 1850 | 1 / 0 |
| 1851 | elif exc == "permission": |
| 1852 | raise PermissionError("not allowed") |
| 1853 | |
| 1854 | def write_error(self, status_code, **kwargs): |
| 1855 | if "exc_info" in kwargs: |
nothing calls this directly
no test coverage detected