summaryrefslogtreecommitdiff
path: root/Lib/idlelib/idle_test/test_parenmatch.py
diff options
context:
space:
mode:
authorTerry Jan Reedy <tjreedy@udel.edu>2016-06-03 23:53:56 -0400
committerTerry Jan Reedy <tjreedy@udel.edu>2016-06-03 23:53:56 -0400
commit15e976bd428cbc9361ff33d71f558232cbdccf01 (patch)
tree7ff78b61953540fa96dfb9a5f449f369c21d972a /Lib/idlelib/idle_test/test_parenmatch.py
parent1691df6d11cbbeb7b929432d051128441c1f4117 (diff)
downloadcpython-15e976bd428cbc9361ff33d71f558232cbdccf01.tar.gz
Issue #27196: Stop 'application destroyed' warnings when running IDLE tests.
The update_idletasks solution was provided by Serhiy Storchaka.
Diffstat (limited to 'Lib/idlelib/idle_test/test_parenmatch.py')
-rw-r--r--Lib/idlelib/idle_test/test_parenmatch.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/Lib/idlelib/idle_test/test_parenmatch.py b/Lib/idlelib/idle_test/test_parenmatch.py
index e153952618..95cc22cf68 100644
--- a/Lib/idlelib/idle_test/test_parenmatch.py
+++ b/Lib/idlelib/idle_test/test_parenmatch.py
@@ -1,6 +1,8 @@
-"""Test idlelib.ParenMatch."""
-# This must currently be a gui test because ParenMatch methods use
-# several text methods not defined on idlelib.idle_test.mock_tk.Text.
+'''Test idlelib.ParenMatch.
+
+This must currently be a gui test because ParenMatch methods use
+several text methods not defined on idlelib.idle_test.mock_tk.Text.
+'''
from test.support import requires
requires('gui')
@@ -29,6 +31,7 @@ class ParenMatchTest(unittest.TestCase):
@classmethod
def tearDownClass(cls):
del cls.text, cls.editwin
+ cls.root.update_idletasks()
cls.root.destroy()
del cls.root