Louie Lu added the comment: test_query were fixed in PR 2147, which is leak by not removing mock.Mock() in dialog. ---------- _______________________________________ Python tracker <report at bugs.python.org> <http://bugs.python.org/issue30642> _______________________________________