Skip to content

Commit afdb1d0

Browse files
committed
Fix the test.
1 parent e2a8d75 commit afdb1d0

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

Programs/_testembed.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2365,9 +2365,10 @@ static int
23652365
test_non_daemon_c_thread(void)
23662366
{
23672367
_testembed_Py_InitializeFromConfig();
2368-
PyThread_ident_t thread;
2368+
PyThread_handle_t thread;
2369+
PyThread_ident_t ident;
23692370
thread_data tdata = {0};
2370-
if (PyThread_start_joinable_thread(non_daemon_c_thread, &tdata, &thread, NULL) < 0) {
2371+
if (PyThread_start_joinable_thread(non_daemon_c_thread, &tdata, &ident, &thread) < 0) {
23712372
return -1;
23722373
}
23732374
PyEvent_Wait(&tdata.started);

0 commit comments

Comments
 (0)