Yury Selivanov <yseliva...@gmail.com> added the comment: A bug found by coverity:
(PyErr_WarnEx might error out; please update the code to handle that) ________________________________________________________________________________________________________ *** CID 1428756: Error handling issues (CHECKED_RETURN) /Modules/gcmodule.c: 1071 in gc_enable_impl() 1065 1066 static PyObject * 1067 gc_enable_impl(PyObject *module) 1068 /*[clinic end generated code: output=45a427e9dce9155c input=81ac4940ca579707]*/ 1069 { 1070 if(_PyRuntime.gc.disabled_threads){ 1071 PyErr_WarnEx(PyExc_RuntimeWarning, "Garbage collector enabled while another " 1072 "thread is inside gc.ensure_enabled",1); 1073 } 1074 _PyRuntime.gc.enabled = 1; 1075 Py_RETURN_NONE; 1076 } ---------- nosy: +yselivanov _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue31356> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com