summaryrefslogtreecommitdiff
path: root/Lib/idlelib/idle_test/htest.py
diff options
context:
space:
mode:
authorTerry Jan Reedy <tjreedy@udel.edu>2016-06-21 18:41:38 -0400
committerTerry Jan Reedy <tjreedy@udel.edu>2016-06-21 18:41:38 -0400
commitb60adc54d4f248d71d831d14e11cc77fe72c281e (patch)
tree40991b8eacb5eea9cfe04e7dbb2cb20149b868f2 /Lib/idlelib/idle_test/htest.py
parentaacd53f6cb96fe8c4fe9ce894f22e25f356a97c3 (diff)
downloadcpython-git-b60adc54d4f248d71d831d14e11cc77fe72c281e.tar.gz
Issue #24137: Run IDLE, test_idle, and htest with tkinter default root disabled.
Fix code and tests that fail with this restriction. Fix htests to not create a second and redundant root and mainloop.
Diffstat (limited to 'Lib/idlelib/idle_test/htest.py')
-rw-r--r--Lib/idlelib/idle_test/htest.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/idlelib/idle_test/htest.py b/Lib/idlelib/idle_test/htest.py
index d0177bb5ad..701f4d9fe6 100644
--- a/Lib/idlelib/idle_test/htest.py
+++ b/Lib/idlelib/idle_test/htest.py
@@ -68,6 +68,7 @@ outwin.OutputWindow (indirectly being tested with grep test)
from importlib import import_module
import tkinter as tk
from tkinter.ttk import Scrollbar
+tk.NoDefaultRoot()
AboutDialog_spec = {
'file': 'help_about',
@@ -364,7 +365,7 @@ def run(*tests):
test = getattr(mod, test_name)
test_list.append((test_spec, test))
- test_name = tk.StringVar('')
+ test_name = tk.StringVar(root)
callable_object = None
test_kwds = None