Home
last modified time | relevance | path

Searched refs:unraisable (Results 1 – 23 of 23) sorted by relevance

/third_party/python/Lib/test/
D_test_atexit.py22 self.assertEqual(cm.unraisable.object, func)
23 self.assertEqual(cm.unraisable.exc_type, exc_type)
24 self.assertEqual(type(cm.unraisable.exc_value), exc_type)
128 self.assertEqual(cm.unraisable.object, func)
129 self.assertEqual(cm.unraisable.exc_type, ZeroDivisionError)
130 self.assertEqual(type(cm.unraisable.exc_value), ZeroDivisionError)
Dtest_thread.py150 self.assertEqual(str(cm.unraisable.exc_value), "task failed")
151 self.assertIs(cm.unraisable.object, task)
152 self.assertEqual(cm.unraisable.err_msg,
154 self.assertIsNotNone(cm.unraisable.exc_traceback)
Dtest_cprofile.py32 self.assertEqual(cm.unraisable.exc_type, TypeError)
Dtest_signal.py1302 if cm.unraisable is not None:
1306 self.assertIsInstance(cm.unraisable.exc_value, OSError)
1309 str(cm.unraisable.exc_value))
Dtest_coroutines.py2054 self.assertIn("was never awaited", str(cm.unraisable.exc_value))
2055 self.assertEqual(repr(cm.unraisable.object), coro_repr)
2280 self.assertEqual(repr(cm.unraisable.object), coro_repr)
2281 self.assertEqual(cm.unraisable.exc_type, ZeroDivisionError)
Dtest_raise.py468 self.assertEqual(ZeroDivisionError, cm.unraisable.exc_type)
Dtest_yield_from.py571 self.assertEqual(ZeroDivisionError, cm.unraisable.exc_type)
Dtest_io.py1128 self.assertIsNone(cm.unraisable)
1129 elif cm.unraisable is not None:
1130 self.assertEqual(cm.unraisable.exc_type, OSError)
2926 self.assertIsNone(cm.unraisable)
2927 elif cm.unraisable is not None:
2928 self.assertEqual(cm.unraisable.exc_type, OSError)
Dtest_exceptions.py1485 self.assertEqual(cm.unraisable.object, BrokenDel.__del__)
1486 self.assertIsNotNone(cm.unraisable.exc_traceback)
Dtest_ssl.py4271 self.assertEqual(catch.unraisable.exc_type, ZeroDivisionError)
4290 self.assertEqual(catch.unraisable.exc_type, TypeError)
/third_party/python/Lib/ctypes/test/
Dtest_random_things.py46 self.assertIsInstance(cm.unraisable.exc_value, exc_type)
48 self.assertEqual(str(cm.unraisable.exc_value), exc_msg)
49 self.assertEqual(cm.unraisable.err_msg,
52 self.assertIs(cm.unraisable.object, callback_func)
Dtest_callbacks.py316 self.assertIsInstance(cm.unraisable.exc_value, TypeError)
317 self.assertEqual(cm.unraisable.err_msg,
320 self.assertIs(cm.unraisable.object, func)
/third_party/python/Lib/test/libregrtest/
Dutils.py78 def regrtest_unraisable_hook(unraisable): argument
86 orig_unraisablehook(unraisable)
/third_party/python/Include/internal/
Dpycore_pylifecycle.h128 PyAPI_FUNC(PyObject*) _PyErr_WriteUnraisableDefaultHook(PyObject *unraisable);
/third_party/python/Lib/test/support/
D__init__.py1919 self.unraisable = None
1922 def _hook(self, unraisable): argument
1925 self.unraisable = unraisable
1934 del self.unraisable
/third_party/python/Doc/library/
Dsys.rst355 unraisable and ``sys.excepthook`` will be called.
359 The :func:`sys.unraisablehook` function handles unraisable exceptions
1664 .. function:: unraisablehook(unraisable, /)
1666 Handle an unraisable exception.
1672 The *unraisable* argument has the following attributes:
1684 :func:`sys.unraisablehook` can be overridden to control how unraisable
1697 .. audit-event:: sys.unraisablehook hook,unraisable sys.unraisablehook
1700 ``hook``, ``unraisable`` when an exception that cannot be handled occurs.
1701 The ``unraisable`` object is the same as what will be passed to the hook.
Dtest.rst801 Context manager catching unraisable exception using
804 Storing the exception value (``cm.unraisable.exc_value``) creates a
808 Storing the object (``cm.unraisable.object``) can resurrect it if it is set
815 # code creating an "unraisable exception"
818 # check the unraisable exception: use cm.unraisable
821 # cm.unraisable attribute no longer exists at this point
/third_party/python/Python/
Dsysmodule.c816 sys_unraisablehook(PyObject *module, PyObject *unraisable) in sys_unraisablehook() argument
819 return _PyErr_WriteUnraisableDefaultHook(unraisable); in sys_unraisablehook()
/third_party/python/Misc/NEWS.d/
D3.8.0b1.rst1081 control how "unraisable exceptions" are handled. It is called when an
1776 catching unraisable exception using :func:`sys.unraisablehook`.
D3.9.0a1.rst4332 now ignores unraisable exception raised when clearing its ``unraisable``
4343 altered" (ENV_CHANGED) if it emits an "unraisable exception". Moreover,
4346 Use ``python3 -m test --fail-env-changed`` to catch unraisable exceptions in
D3.9.0a5.rst1195 :c:func:`PyEval_SetTrace`, log the error as an unraisable exception.
/third_party/python/Doc/c-api/
Dexceptions.rst84 in which the unraisable exception occurred. If possible,
/third_party/python/Doc/whatsnew/
D3.8.rst1237 how "unraisable exceptions" are handled. It is called when an exception has