Message299837
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. |
|
Date |
User |
Action |
Args |
2017-08-07 09:54:21 | vstinner | set | recipients:
+ vstinner |
2017-08-07 09:54:21 | vstinner | set | messageid: <1502099661.63.0.0809681924894.issue31130@psf.upfronthosting.co.za> |
2017-08-07 09:54:21 | vstinner | link | issue31130 messages |
2017-08-07 09:54:21 | vstinner | create | |
|