Home
last modified time | relevance | path

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

/third_party/python/Lib/unittest/
Dresult.py175 exctype, value, tb = err
180 if exctype is test.failureException:
186 exctype, value, tb,
/third_party/python/Lib/
Dcontextlib.py383 def __exit__(self, exctype, excinst, exctb): argument
426 def __exit__(self, exctype, excinst, exctb): argument
436 return exctype is not None and issubclass(exctype, self._exceptions)
/third_party/python/Python/clinic/
Dsysmodule.c.h56 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/
Dtest_codeccallbacks.py290 def check_exceptionobjectargs(self, exctype, args, msg): argument
293 self.assertRaises(TypeError, exctype, *args[:-1])
295 self.assertRaises(TypeError, exctype, *(args + ["too much"]))
309 self.assertRaises(TypeError, exctype, *callargs)
312 exc = exctype(*args)
Dtest__xxsubinterpreters.py872 def assert_run_failed(self, exctype, msg=None): argument
877 str(exctype))
880 "{}: {}".format(exctype, msg))
Dtest_tarfile.py1419 for exctype in OSError, EOFError, RuntimeError:
1425 raise exctype
1428 with self.assertRaises(exctype):
/third_party/python/Modules/
D_xxsubinterpretersmodule.c204 _sharedexception_bind(PyObject *exctype, PyObject *exc, PyObject *tb) in _sharedexception_bind() argument
206 assert(exctype != NULL); in _sharedexception_bind()
214 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/
Dsysmodule.c766 sys_excepthook_impl(PyObject *module, PyObject *exctype, PyObject *value, in sys_excepthook_impl() argument
770 PyErr_Display(exctype, value, traceback); in sys_excepthook_impl()