Attilio Di Nisio added the comment: A simple patch to freeze the list of sys.modules. ---------- _______________________________________ Python tracker <report at bugs.python.org> <http://bugs.python.org/issue22292> _______________________________________