mirror of
https://github.com/python/cpython.git
synced 2024-11-27 03:45:08 +08:00
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
Block a user