GH-141509: Fix warning about remaining subinterpreters (GH-141528)

Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
This commit is contained in:
Sergey Miryanov 2025-11-14 19:55:04 +05:00 committed by GitHub
parent 10bec7c1eb
commit fa245df4a0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 5 additions and 2 deletions

View file

@ -2643,7 +2643,7 @@ finalize_subinterpreters(void)
(void)PyErr_WarnEx(
PyExc_RuntimeWarning,
"remaining subinterpreters; "
"destroy them with _interpreters.destroy()",
"close them with Interpreter.close()",
0);
/* Swap out the current tstate, which we know must belong