This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients vstinner
Date 2017-08-07.09:54:21
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1502099661.63.0.0809681924894.issue31130@psf.upfronthosting.co.za>
In-reply-to
Content
I don't know anything about idlelib, but it seems like the following patch fixes the failing test:

diff --git a/Lib/idlelib/idle_test/test_configdialog.py b/Lib/idlelib/idle_test/test_configdialog.py
index aff3c2f..9f495fd 100644
--- a/Lib/idlelib/idle_test/test_configdialog.py
+++ b/Lib/idlelib/idle_test/test_configdialog.py
@@ -41,6 +41,7 @@ def tearDownModule():
     global root, dialog
     idleConf.userCfg = usercfg
     tracers.detach()
+    tracers.clear()
     del dialog
     root.update_idletasks()
     root.destroy()

Extract of ConfigDialog.create_page_highlight():

        self.builtin_theme = tracers.add(
                StringVar(parent), self.var_changed_builtin_theme)

This method contains many tracers.add() calls, but tearDownModule() of Lib/idlelib/idle_test/test_configdialog.py only calls "tracers.detach()" and detatch() doesn't clear VarTrace.untraced list.
History
Date User Action Args
2017-08-07 09:54:21vstinnersetrecipients: + vstinner
2017-08-07 09:54:21vstinnersetmessageid: <1502099661.63.0.0809681924894.issue31130@psf.upfronthosting.co.za>
2017-08-07 09:54:21vstinnerlinkissue31130 messages
2017-08-07 09:54:21vstinnercreate