Searched refs:hook_args (Results 1 – 3 of 3) sorted by relevance
1467 PyObject *hook_args = make_unraisable_hook_args( in _PyErr_WriteUnraisableMsg() local1469 if (hook_args == NULL) { in _PyErr_WriteUnraisableMsg()1478 Py_DECREF(hook_args); in _PyErr_WriteUnraisableMsg()1482 if (_PySys_Audit(tstate, "sys.unraisablehook", "OO", hook, hook_args) < 0) { in _PyErr_WriteUnraisableMsg()1483 Py_DECREF(hook_args); in _PyErr_WriteUnraisableMsg()1490 Py_DECREF(hook_args); in _PyErr_WriteUnraisableMsg()1494 PyObject *res = PyObject_CallOneArg(hook, hook_args); in _PyErr_WriteUnraisableMsg()1495 Py_DECREF(hook_args); in _PyErr_WriteUnraisableMsg()
1017 hook_args = None1020 nonlocal hook_args1021 hook_args = args1029 self.assertEqual(getattr(hook_args, attr),1031 (hook_args, expected))1035 hook_args = None
1294 def hook(hook_args): argument1296 args = hook_args