Searched refs:exctype (Results 1 - 8 of 8) sorted by relevance
/third_party/python/Lib/unittest/ |
H A D | result.py | 175 exctype, value, tb = err 176 tb = self._clean_tracebacks(exctype, value, tb, test) 178 exctype, value, tb, 195 def _clean_tracebacks(self, exctype, value, tb, test): 198 excs = [(exctype, value, tb)] 201 (exctype, value, tb) = excs.pop() 207 if exctype is test.failureException:
|
/third_party/python/Lib/ |
H A D | contextlib.py | 391 def __exit__(self, exctype, excinst, exctb): 434 def __exit__(self, exctype, excinst, exctb): 444 return exctype is not None and issubclass(exctype, self._exceptions)
|
/third_party/python/Python/clinic/ |
H A D | sysmodule.c.h | 47 "excepthook($module, exctype, value, traceback, /)\n" 56 sys_excepthook_impl(PyObject *module, PyObject *exctype, PyObject *value, 63 PyObject *exctype; in sys_excepthook() local 70 exctype = args[0]; in sys_excepthook() 73 return_value = sys_excepthook_impl(module, exctype, value, traceback); in sys_excepthook()
|
/third_party/python/Lib/test/ |
H A D | test_codeccallbacks.py | 303 def check_exceptionobjectargs(self, exctype, args, msg): 306 self.assertRaises(TypeError, exctype, *args[:-1]) 308 self.assertRaises(TypeError, exctype, *(args + ["too much"])) 322 self.assertRaises(TypeError, exctype, *callargs) 325 exc = exctype(*args)
|
H A D | test__xxsubinterpreters.py | 872 def assert_run_failed(self, exctype, msg=None): 877 str(exctype)) 880 "{}: {}".format(exctype, msg))
|
H A D | test_tarfile.py | 1537 for exctype in OSError, EOFError, RuntimeError: 1543 raise exctype 1546 with self.assertRaises(exctype):
|
/third_party/python/Modules/ |
H A D | _xxsubinterpretersmodule.c | 208 _sharedexception_bind(PyObject *exctype, PyObject *exc, PyObject *tb) in _sharedexception_bind() argument 210 assert(exctype != NULL); in _sharedexception_bind() 218 PyObject *name = PyUnicode_FromFormat("%S", exctype); in _sharedexception_bind() 1866 PyObject *exctype = NULL; in _run_script() local 1903 PyErr_Fetch(&exctype, &excval, &tb); in _run_script() 1905 _sharedexception *sharedexc = _sharedexception_bind(exctype, excval, tb); in _run_script() 1906 Py_XDECREF(exctype); in _run_script()
|
/third_party/python/Python/ |
H A D | sysmodule.c | 732 exctype: object 741 sys_excepthook_impl(PyObject *module, PyObject *exctype, PyObject *value, in sys_excepthook_impl() argument 745 PyErr_Display(exctype, value, traceback); in sys_excepthook_impl()
|
Completed in 20 milliseconds