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:
Victor Stinner 2021-06-29 02:03:30 +02:00 committed by GitHub
parent dcb1caef5b
commit 48e3a1d95a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 0 additions and 4 deletions

View File

@ -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 *

View File

@ -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)