From cd567365c9f95cf005d6bb7c1da7946b68a43ab4 Mon Sep 17 00:00:00 2001 From: Terry Jan Reedy Date: Fri, 17 Oct 2014 01:31:35 -0400 Subject: Issue #22629: Revise idle_test.htest, mostly docstring. Start revision of htests to add # htest # marker for coveragepy and stop tcl errors. --- Lib/idlelib/EditorWindow.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'Lib/idlelib/EditorWindow.py') diff --git a/Lib/idlelib/EditorWindow.py b/Lib/idlelib/EditorWindow.py index 10565522f7..bdf4a1a6f6 100644 --- a/Lib/idlelib/EditorWindow.py +++ b/Lib/idlelib/EditorWindow.py @@ -1711,7 +1711,8 @@ def fixwordbreaks(root): 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 @@ def _editor_window(parent): macosxSupport.setupApp(root, None) edit = EditorWindow(root=root, filename=filename) edit.text.bind("<>", edit.close_event) - parent.mainloop() + # Does not stop error, neither does following + # edit.text.bind("<>", edit.close_event) if __name__ == '__main__': from idlelib.idle_test.htest import run -- cgit v1.2.1