Home
last modified time | relevance | path

Searched refs:exctype (Results 1 - 8 of 8) sorted by relevance

/third_party/python/Lib/unittest/
H A Dresult.py175 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 Dcontextlib.py391 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 Dsysmodule.c.h47 "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 Dtest_codeccallbacks.py303 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 Dtest__xxsubinterpreters.py872 def assert_run_failed(self, exctype, msg=None):
877 str(exctype))
880 "{}: {}".format(exctype, msg))
H A Dtest_tarfile.py1537 for exctype in OSError, EOFError, RuntimeError:
1543 raise exctype
1546 with self.assertRaises(exctype):
/third_party/python/Modules/
H A D_xxsubinterpretersmodule.c208 _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 Dsysmodule.c732 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