Searched refs:hook_args (Results 1 – 3 of 3) sorted by relevance
1495 PyObject *hook_args = make_unraisable_hook_args( in _PyErr_WriteUnraisableMsg() local1497 if (hook_args == NULL) { in _PyErr_WriteUnraisableMsg()1506 Py_DECREF(hook_args); in _PyErr_WriteUnraisableMsg()1510 if (_PySys_Audit(tstate, "sys.unraisablehook", "OO", hook, hook_args) < 0) { in _PyErr_WriteUnraisableMsg()1511 Py_DECREF(hook_args); in _PyErr_WriteUnraisableMsg()1518 Py_DECREF(hook_args); in _PyErr_WriteUnraisableMsg()1522 PyObject *res = PyObject_CallOneArg(hook, hook_args); in _PyErr_WriteUnraisableMsg()1523 Py_DECREF(hook_args); in _PyErr_WriteUnraisableMsg()
1095 hook_args = None1098 nonlocal hook_args1099 hook_args = args1107 self.assertEqual(getattr(hook_args, attr),1109 (hook_args, expected))1113 hook_args = None
1470 def hook(hook_args): argument1472 args = hook_args