Issue #22629: Revise idle_test.htest, mostly docstring. Start revision of
htests to add # htest # marker for coveragepy and stop tcl errors.
diff --git a/Lib/idlelib/EditorWindow.py b/Lib/idlelib/EditorWindow.py
index 2032b65..5770ded 100644
--- a/Lib/idlelib/EditorWindow.py
+++ b/Lib/idlelib/EditorWindow.py
@@ -1711,7 +1711,8 @@
tk.call('set', 'tcl_nonwordchars', '[^a-zA-Z0-9_]')
-def _editor_window(parent):
+def _editor_window(parent): # htest #
+ # error if close master window first - timer event, after script
root = parent
fixwordbreaks(root)
if sys.argv[1:]:
@@ -1721,7 +1722,8 @@
macosxSupport.setupApp(root, None)
edit = EditorWindow(root=root, filename=filename)
edit.text.bind("<<close-all-windows>>", edit.close_event)
- parent.mainloop()
+ # Does not stop error, neither does following
+ # edit.text.bind("<<close-window>>", edit.close_event)
if __name__ == '__main__':