mirror of
https://github.com/python/cpython.git
synced 2026-01-06 15:32:22 +00:00
gh-136549: Fix signature of threading.excepthook() (GH-136559)
This commit is contained in:
parent
5e1e21dee3
commit
be2c3d284e
3 changed files with 3 additions and 1 deletions
|
|
@ -5916,6 +5916,7 @@ def test_sysconfig_module_has_signatures(self):
|
|||
def test_threading_module_has_signatures(self):
|
||||
import threading
|
||||
self._test_module_has_signatures(threading)
|
||||
self.assertIsNotNone(inspect.signature(threading.__excepthook__))
|
||||
|
||||
def test_thread_module_has_signatures(self):
|
||||
import _thread
|
||||
|
|
|
|||
|
|
@ -0,0 +1 @@
|
|||
Fix signature of :func:`threading.excepthook`.
|
||||
|
|
@ -2330,7 +2330,7 @@ thread_excepthook(PyObject *module, PyObject *args)
|
|||
}
|
||||
|
||||
PyDoc_STRVAR(excepthook_doc,
|
||||
"_excepthook($module, (exc_type, exc_value, exc_traceback, thread), /)\n\
|
||||
"_excepthook($module, args, /)\n\
|
||||
--\n\
|
||||
\n\
|
||||
Handle uncaught Thread.run() exception.");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue