Home
last modified time | relevance | path

Searched refs:exc_type (Results 1 – 25 of 116) sorted by relevance

12345

/third_party/python/Python/
Derrors.c80 while ((exc_info->exc_type == NULL || exc_info->exc_type == Py_None) && in _PyErr_GetTopmostException()
472 *p_type = exc_info->exc_type; in _PyErr_GetExcInfo()
495 oldtype = tstate->exc_info->exc_type; in PyErr_SetExcInfo()
499 tstate->exc_info->exc_type = p_type; in PyErr_SetExcInfo()
568 if (exc_info->exc_type == NULL || exc_info->exc_type == Py_None) { in _PyErr_ChainStackItem()
584 exc2 = exc_info->exc_type; in _PyErr_ChainStackItem()
1235 make_unraisable_hook_args(PyThreadState *tstate, PyObject *exc_type, in make_unraisable_hook_args() argument
1245 #define ADD_ITEM(exc_type) \ in make_unraisable_hook_args() argument
1247 if (exc_type == NULL) { \ in make_unraisable_hook_args()
1248 exc_type = Py_None; \ in make_unraisable_hook_args()
[all …]
/third_party/python/Lib/test/
D_test_atexit.py17 def assert_raises_unraisable(self, exc_type, func, *args): argument
23 self.assertEqual(cm.unraisable.exc_type, exc_type)
24 self.assertEqual(type(cm.unraisable.exc_value), exc_type)
129 self.assertEqual(cm.unraisable.exc_type, ZeroDivisionError)
Daudit-tests.py20 def __init__(self, raise_on_events=None, exc_type=RuntimeError): argument
22 self.exc_type = exc_type
45 raise self.exc_type("saw event " + event)
103 raise_on_events="sys.addaudithook", exc_type=BaseException
274 def excepthook(exc_type, exc_value, exc_tb): argument
275 if exc_type is not RuntimeError:
276 sys.__excepthook__(exc_type, exc_value, exc_tb)
D_test_embed_set_config.py139 for exc_type, tests in (
145 with self.subTest(key=key, value=value, exc_type=exc_type):
146 with self.assertRaises(exc_type):
Dtest_contextlib_async.py74 async def __aexit__(self, exc_type, exc_value, traceback): argument
468 async def _expect_exc(exc_type, exc, exc_tb): argument
469 self.assertIs(exc_type, exc_raised)
472 async def _expect_ok(exc_type, exc, exc_tb): argument
473 self.assertIsNone(exc_type)
/third_party/node/tools/inspector_protocol/jinja2/
Ddebug.py83 def __init__(self, exc_type, exc_value, frames): argument
85 self.exc_type = exc_type
99 lines = traceback.format_exception(self.exc_type, self.exc_value,
119 return self.exc_type, self.exc_value, self.frames[0]
129 return self.exc_type, self.exc_value, tb
134 exc_type, exc_value, tb = exc_info
230 exc_type, exc_value, tb = exc_info
/third_party/python/Lib/test/support/
Dthreading_helper.py187 self.exc_type = None
194 self.exc_type = args.exc_type
206 del self.exc_type
/third_party/python/Lib/
Dpy_compile.py46 def __init__(self, exc_type, exc_value, file, msg=''): argument
47 exc_type_name = exc_type.__name__
48 if exc_type is SyntaxError:
50 exc_type, exc_value))
Dtraceback.py489 def __init__(self, exc_type, exc_value, exc_traceback, *, limit=None, argument
505 self.exc_type = exc_type
509 if exc_type and issubclass(exc_type, SyntaxError):
600 if self.exc_type is None:
604 stype = self.exc_type.__qualname__
605 smod = self.exc_type.__module__
611 if not issubclass(self.exc_type, SyntaxError):
Dcontextlib.py26 def __exit__(self, exc_type, exc_value, traceback): argument
48 async def __aexit__(self, exc_type, exc_value, traceback): argument
448 def _exit_wrapper(exc_type, exc, tb): argument
607 async def _exit_wrapper(exc_type, exc, tb): argument
/third_party/flutter/skia/infra/bots/
Dgit_utils.py33 def __exit__(self, exc_type, _value, _traceback): argument
87 def __exit__(self, exc_type, _value, _traceback): argument
91 if exc_type is None:
/third_party/python/Lib/xmlrpc/
Dserver.py273 exc_type, exc_value, exc_tb = sys.exc_info()
276 Fault(1, "%s:%s" % (exc_type, exc_value)),
281 exc_type = exc_value = exc_tb = None
372 exc_type, exc_value, exc_tb = sys.exc_info()
376 'faultString' : "%s:%s" % (exc_type, exc_value)}
380 exc_type = exc_value = exc_tb = None
641 exc_type, exc_value = sys.exc_info()[:2]
644 Fault(1, "%s:%s" % (exc_type, exc_value)),
649 exc_type = exc_value = None
/third_party/skia/infra/bots/
Dgit_utils.py34 def __exit__(self, exc_type, _value, _traceback): argument
88 def __exit__(self, exc_type, _value, _traceback): argument
92 if exc_type is None:
/third_party/libxml2/doc/
Dindex.py226 print sys.exc_type, sys.exc_value
267 print sys.exc_type, sys.exc_value
316 print sys.exc_type, sys.exc_value
356 print sys.exc_type, sys.exc_value
439 print sys.exc_type, sys.exc_value
616 print sys.exc_type, sys.exc_value
665 print sys.exc_type, sys.exc_value
1018 print sys.exc_type, sys.exc_value
1184 print sys.exc_type, sys.exc_value
1210 print sys.exc_type, sys.exc_value
[all …]
Dqueries.py48 print sys.exc_type, sys.exc_value
107 print sys.exc_type, sys.exc_value
/third_party/python/Lib/multiprocessing/dummy/
Dconnection.py36 def __exit__(self, exc_type, exc_value, exc_tb): argument
74 def __exit__(self, exc_type, exc_value, exc_tb): argument
/third_party/python/Modules/_ssl/
Ddebughelpers.c77 PyErr_Fetch(&ssl_obj->exc_type, &ssl_obj->exc_value, &ssl_obj->exc_tb); in _PySSL_msg_callback()
143 PyErr_Fetch(&ssl_obj->exc_type, &ssl_obj->exc_value, in _PySSL_keylog_callback()
161 PyErr_Fetch(&ssl_obj->exc_type, &ssl_obj->exc_value, &ssl_obj->exc_tb); in _PySSL_keylog_callback()
/third_party/python/Lib/ctypes/test/
Dtest_random_things.py42 def expect_unraisable(self, exc_type, exc_msg=None): argument
46 self.assertIsInstance(cm.unraisable.exc_value, exc_type)
/third_party/python/Modules/_multiprocessing/clinic/
Dsemaphore.c.h362 PyObject *exc_type,
369 PyObject *exc_type = Py_None; in _multiprocessing_SemLock___exit__() local
379 exc_type = args[0]; in _multiprocessing_SemLock___exit__()
389 return_value = _multiprocessing_SemLock___exit___impl(self, exc_type, exc_value, exc_tb); in _multiprocessing_SemLock___exit__()
/third_party/python/Include/internal/
Dpycore_pyerrors.h20 t = exc_state->exc_type; in _PyErr_ClearExcState()
23 exc_state->exc_type = NULL; in _PyErr_ClearExcState()
/third_party/python/Lib/unittest/
D_log.py63 def __exit__(self, exc_type, exc_value, tb): argument
68 if exc_type is not None:
/third_party/boost/tools/build/test/
Dtest_all.py71 exc_type, exc_value, exc_tb = sys.exc_info()
74 "%s" % (exc_type.__name__, exc_value))
Dcollect_debug_info.py326 exc_type, exc_value = sys.exc_info()[0:2]
327 if exc_type is None:
330 exc_type_name = exc_type.__name__
/third_party/mindspore/mindspore/_extends/parallel_compile/tbe_compiler/
Dtuner.py305 exc_type, exc_value, _ = sys.exc_info()
307 … "exc_type:{}, exc_value:{}, exc_traceback:{}".format(exc_type, exc_value, traceback.format_exc()))
347 exc_type, exc_value, _ = sys.exc_info()
349 … "exc_type:{}, exc_value:{}, exc_traceback:{}".format(exc_type, exc_value, traceback.format_exc()))
/third_party/jinja2/
Ddebug.py23 exc_type, exc_value, tb = sys.exc_info()
73 return exc_type, exc_value, tb_next

12345