summaryrefslogtreecommitdiffstats
path: root/Lib/idlelib/idle_test/test_query.py
diff options
context:
space:
mode:
authorTerry Jan Reedy <tjreedy@udel.edu>2016-09-01 01:09:02 (GMT)
committerTerry Jan Reedy <tjreedy@udel.edu>2016-09-01 01:09:02 (GMT)
commit5f30f7935701cb0c62f498753ad79f19f24f10a1 (patch)
treefe700ba6c930695c39de50d9719fbacc5c6cdc45 /Lib/idlelib/idle_test/test_query.py
parenta3623c864bd058a184abeb4163faac8a4e809cc5 (diff)
parent00b1e0f7ea1523813e3d407bfdefdf55592566af (diff)
downloadcpython-5f30f7935701cb0c62f498753ad79f19f24f10a1.zip
cpython-5f30f7935701cb0c62f498753ad79f19f24f10a1.tar.gz
cpython-5f30f7935701cb0c62f498753ad79f19f24f10a1.tar.bz2
Issue #27922: IDLE tests no longer flash tk widgets (Merge 3.5).
Diffstat (limited to 'Lib/idlelib/idle_test/test_query.py')
-rw-r--r--Lib/idlelib/idle_test/test_query.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/idlelib/idle_test/test_query.py b/Lib/idlelib/idle_test/test_query.py
index e9ed694..66af8eb 100644
--- a/Lib/idlelib/idle_test/test_query.py
+++ b/Lib/idlelib/idle_test/test_query.py
@@ -252,6 +252,7 @@ class QueryGuiTest(unittest.TestCase):
def setUpClass(cls):
requires('gui')
cls.root = root = Tk()
+ cls.root.withdraw()
cls.dialog = query.Query(root, 'TEST', 'test', _utest=True)
cls.dialog.destroy = mock.Mock()
@@ -295,6 +296,7 @@ class SectionnameGuiTest(unittest.TestCase):
def test_click_section_name(self):
root = Tk()
+ root.withdraw()
dialog = query.SectionName(root, 'T', 't', {'abc'}, _utest=True)
Equal = self.assertEqual
self.assertEqual(dialog.used_names, {'abc'})
@@ -314,6 +316,7 @@ class ModulenameGuiTest(unittest.TestCase):
def test_click_module_name(self):
root = Tk()
+ root.withdraw()
dialog = query.ModuleName(root, 'T', 't', 'idlelib', _utest=True)
self.assertEqual(dialog.text0, 'idlelib')
self.assertEqual(dialog.entry.get(), 'idlelib')
@@ -332,6 +335,7 @@ class HelpsourceGuiTest(unittest.TestCase):
def test_click_help_source(self):
root = Tk()
+ root.withdraw()
dialog = query.HelpSource(root, 'T', menuitem='__test__',
filepath=__file__, _utest=True)
Equal = self.assertEqual