mirror of
https://github.com/python/cpython.git
synced 2025-08-30 13:38:43 +00:00
Issue #22629: Revise idle_test.htest, mostly docstring. Start revision of
htests to add # htest # marker for coveragepy and stop tcl errors.
This commit is contained in:
parent
9a6f8e1866
commit
cd567365c9
8 changed files with 110 additions and 80 deletions
|
@ -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("<<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__':
|
||||
from idlelib.idle_test.htest import run
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue