Skip to content

Commit a277130

Browse files
committed
Add a comment.
1 parent 5236700 commit a277130

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

Programs/_testembed.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2365,6 +2365,9 @@ test_thread_state_ensure(void)
23652365
PyInterpreterRef_Close(ref);
23662366
return -1;
23672367
}
2368+
// We hold a strong interpreter reference, so we don't
2369+
// have to worry about the interpreter shutting down before
2370+
// we finalize.
23682371
Py_Finalize();
23692372
assert(data.done == 1);
23702373
return 0;

0 commit comments

Comments
 (0)