Searched refs:unraisable (Results 1 – 23 of 23) sorted by relevance
/third_party/python/Lib/test/ |
D | _test_atexit.py | 22 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)
|
D | test_thread.py | 150 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)
|
D | test_cprofile.py | 32 self.assertEqual(cm.unraisable.exc_type, TypeError)
|
D | test_signal.py | 1302 if cm.unraisable is not None: 1306 self.assertIsInstance(cm.unraisable.exc_value, OSError) 1309 str(cm.unraisable.exc_value))
|
D | test_coroutines.py | 2054 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)
|
D | test_raise.py | 468 self.assertEqual(ZeroDivisionError, cm.unraisable.exc_type)
|
D | test_yield_from.py | 571 self.assertEqual(ZeroDivisionError, cm.unraisable.exc_type)
|
D | test_io.py | 1128 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)
|
D | test_exceptions.py | 1485 self.assertEqual(cm.unraisable.object, BrokenDel.__del__) 1486 self.assertIsNotNone(cm.unraisable.exc_traceback)
|
D | test_ssl.py | 4271 self.assertEqual(catch.unraisable.exc_type, ZeroDivisionError) 4290 self.assertEqual(catch.unraisable.exc_type, TypeError)
|
/third_party/python/Lib/ctypes/test/ |
D | test_random_things.py | 46 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)
|
D | test_callbacks.py | 316 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/ |
D | utils.py | 78 def regrtest_unraisable_hook(unraisable): argument 86 orig_unraisablehook(unraisable)
|
/third_party/python/Include/internal/ |
D | pycore_pylifecycle.h | 128 PyAPI_FUNC(PyObject*) _PyErr_WriteUnraisableDefaultHook(PyObject *unraisable);
|
/third_party/python/Lib/test/support/ |
D | __init__.py | 1919 self.unraisable = None 1922 def _hook(self, unraisable): argument 1925 self.unraisable = unraisable 1934 del self.unraisable
|
/third_party/python/Doc/library/ |
D | test.rst | 801 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
|
D | sys.rst | 355 unraisable and ``sys.excepthook`` will be called. 359 The :func:`sys.unraisablehook` function handles unraisable exceptions 1633 .. function:: unraisablehook(unraisable, /) 1635 Handle an unraisable exception. 1641 The *unraisable* argument has the following attributes: 1653 :func:`sys.unraisablehook` can be overridden to control how unraisable 1666 .. audit-event:: sys.unraisablehook hook,unraisable sys.unraisablehook 1669 ``hook``, ``unraisable`` when an exception that cannot be handled occurs. 1670 The ``unraisable`` object is the same as what will be passed to the hook.
|
/third_party/python/Python/ |
D | sysmodule.c | 815 sys_unraisablehook(PyObject *module, PyObject *unraisable) in sys_unraisablehook() argument 818 return _PyErr_WriteUnraisableDefaultHook(unraisable); in sys_unraisablehook()
|
/third_party/python/Misc/NEWS.d/ |
D | 3.8.0b1.rst | 1081 control how "unraisable exceptions" are handled. It is called when an 1776 catching unraisable exception using :func:`sys.unraisablehook`.
|
D | 3.9.0a1.rst | 4332 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
|
D | 3.9.0a5.rst | 1195 :c:func:`PyEval_SetTrace`, log the error as an unraisable exception.
|
/third_party/python/Doc/c-api/ |
D | exceptions.rst | 84 in which the unraisable exception occurred. If possible,
|
/third_party/python/Doc/whatsnew/ |
D | 3.8.rst | 1237 how "unraisable exceptions" are handled. It is called when an exception has
|