Home
last modified time | relevance | path

Searched refs:exc2 (Results 1 – 7 of 7) sorted by relevance

/third_party/python/Lib/test/
Dtest_contextlib.py854 exc2 = Exception(2)
865 stack.enter_context(gets_the_context_right(exc2))
870 self.assertIs(exc.__context__.__context__, exc2)
884 exc2 = Exception(2)
891 stack.callback(raise_nested, exc2, exc3)
897 self.assertIs(exc.__context__.__context__.__context__, exc2)
Dtest_raise.py42 except IndexError as exc2:
43 self.assertIs(exc1, exc2)
Dtest_traceback.py1324 exc2 = traceback.TracebackException(*exc_info)
1325 self.assertIsNot(exc, exc2)
1326 self.assertEqual(exc, exc2)
1348 exc2 = traceback.TracebackException(*exc_info, limit=2)
1351 self.assertNotEqual(exc, exc2) # limit=2 truncates the output
/third_party/python/Python/
Derrors.c530 PyObject *exc2, *val2, *tb2; in _PyErr_ChainExceptions() local
531 _PyErr_Fetch(tstate, &exc2, &val2, &tb2); in _PyErr_ChainExceptions()
538 _PyErr_NormalizeException(tstate, &exc2, &val2, &tb2); in _PyErr_ChainExceptions()
540 _PyErr_Restore(tstate, exc2, val2, tb2); in _PyErr_ChainExceptions()
583 PyObject *exc2, *val2, *tb2; in _PyErr_ChainStackItem() local
584 exc2 = exc_info->exc_type; in _PyErr_ChainStackItem()
587 _PyErr_NormalizeException(tstate, &exc2, &val2, &tb2); in _PyErr_ChainStackItem()
/third_party/python/Lib/idlelib/idle_test/
Dtest_run.py65 for (code1, exc1, msg1), (code2, exc2, msg2) in data2:
72 except exc2:
/third_party/python/Lib/unittest/test/
Dtest_runner.py84 exc2 = Exception('bar')
89 raise exc2
100 self.assertEqual((Type2, instance2), (Exception, exc2))
/third_party/python/Lib/test/test_asyncio/
Dtest_tasks.py3335 exc2 = RuntimeError()
3341 d.set_exception(exc2)
3345 self.assertEqual(fut.result(), [3, 1, exc, exc2])