]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-44434: Remove useless calls to PyThread_exit_thread() (GH-26943)
authorVictor Stinner <vstinner@python.org>
Tue, 29 Jun 2021 00:03:30 +0000 (02:03 +0200)
committerGitHub <noreply@github.com>
Tue, 29 Jun 2021 00:03:30 +0000 (02:03 +0200)
Remove useless calls to PyThread_exit_thread() in two unit tests of
_testcapi and _testembed modules.

Co-authored-by: Alexey Izbyshev <izbyshev@ispras.ru>
Modules/_testcapimodule.c
Programs/_testembed.c

index b983deeac6aafb794f4425b832bf70f158b32259..7ac0e84d2efb0d0aa3b33cc50c8875d1ab642f7a 100644 (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 *
index d963cb3dc7e20e83a99bb82eaa895535a37090da..64a8714db02f3c4bdc5c0e88ba129a6b59401a5c 100644 (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)