Skip to content

Commit 48e3a1d

Browse files
vstinnerAlexey Izbyshev
and
Alexey Izbyshev
authored
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>
1 parent dcb1cae commit 48e3a1d

File tree

2 files changed

+0
-4
lines changed

2 files changed

+0
-4
lines changed

Modules/_testcapimodule.c

-2
Original file line numberDiff line numberDiff line change
@@ -4300,8 +4300,6 @@ temporary_c_thread(void *data)
43004300
PyGILState_Release(state);
43014301

43024302
PyThread_release_lock(test_c_thread->exit_event);
4303-
4304-
PyThread_exit_thread();
43054303
}
43064304

43074305
static PyObject *

Programs/_testembed.c

-2
Original file line numberDiff line numberDiff line change
@@ -269,8 +269,6 @@ static void bpo20891_thread(void *lockp)
269269
PyGILState_Release(state);
270270

271271
PyThread_release_lock(lock);
272-
273-
PyThread_exit_thread();
274272
}
275273

276274
static int test_bpo20891(void)

0 commit comments

Comments
 (0)