[New-bugs-announce] [issue22236] Do not use _default_root in Tkinter tests

Serhiy Storchaka report at bugs.python.org
Wed Aug 20 16:19:41 CEST 2014


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 <report at bugs.python.org>
<http://bugs.python.org/issue22236>
_______________________________________


More information about the New-bugs-announce mailing list