New submission from Serhiy Storchaka: Currently many Tkinter tests depends on tkinter._default_root. I.e. they reuse the same Tcl interpreter and main window. This can cause unexpected dependencies between tests. Proposed patch creates new root for every test, this makes tests mutually independent. It also fixes some bugs in NoDefaultRoot mode and get rid of 'can't invoke "event" command:' messages in tests. This patch is needed to run Tkinter tests in different "wantobjects" modes (issue21585).
---------- components: Tests, Tkinter files: tkinter_no_default_root.patch keywords: patch messages: 225570 nosy: gpolo, serhiy.storchaka, terry.reedy, zach.ware priority: normal severity: normal stage: patch review status: open title: Do not use _default_root in Tkinter tests type: behavior versions: Python 2.7, Python 3.4, Python 3.5 Added file: http://bugs.python.org/file36421/tkinter_no_default_root.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue22236> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com