mirror of https://github.com/python/cpython
bpo-44434: Remove useless calls to PyThread_exit_thread() (GH-26943)
Remove useless calls to PyThread_exit_thread() in two unit tests of _testcapi and _testembed modules. Co-authored-by: Alexey Izbyshev <izbyshev@ispras.ru>
This commit is contained in:
parent
dcb1caef5b
commit
48e3a1d95a
|
@ -4300,8 +4300,6 @@ temporary_c_thread(void *data)
|
|||
PyGILState_Release(state);
|
||||
|
||||
PyThread_release_lock(test_c_thread->exit_event);
|
||||
|
||||
PyThread_exit_thread();
|
||||
}
|
||||
|
||||
static PyObject *
|
||||
|
|
|
@ -269,8 +269,6 @@ static void bpo20891_thread(void *lockp)
|
|||
PyGILState_Release(state);
|
||||
|
||||
PyThread_release_lock(lock);
|
||||
|
||||
PyThread_exit_thread();
|
||||
}
|
||||
|
||||
static int test_bpo20891(void)
|
||||
|
|
Loading…
Reference in New Issue