Issue 33379: PyImport_Cleanup is called with builtins_copy == NULL in test_embed

Issue33379

Created on 2018-04-28 22:03 by serhiy.storchaka, last changed 2022-04-11 14:58 by admin.

Messages (2)
msg315868 - (view) Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer) Date: 2018-04-28 22:03
PyImport_Cleanup is called with builtins_copy == NULL in run_embedded_interpreter() in Lib/test/test_embed.py. This error was silenced by calling PyErr_Clear(), but it still looks as error to me. It was exposed by PR 6606.
msg315881 - (view) Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer) Date: 2018-04-29 05:56
PyImport_Cleanup() is called in Py_EndInterpreter(), but Py_NewInterpreter() doesn't call _PyImport_Init() which initializes builtins_copy.
History
Date User Action Args
2022-04-11 14:58:59adminsetgithub: 77560
2018-04-29 05:56:26serhiy.storchakasetmessages: + msg315881
2018-04-29 04:29:01serhiy.storchakasetversions: + Python 3.6
2018-04-28 22:03:00serhiy.storchakacreate