summaryrefslogtreecommitdiffstats
path: root/Lib/idlelib/idle_test/test_parenmatch.py
diff options
context:
space:
mode:
authorTerry Jan Reedy <tjreedy@udel.edu>2016-06-04 03:53:56 (GMT)
committerTerry Jan Reedy <tjreedy@udel.edu>2016-06-04 03:53:56 (GMT)
commit6047b5537226efdcd2e3b460957fb44388ec2e99 (patch)
tree078a11b878d2fff040d3805b03946f0dda4ef51c /Lib/idlelib/idle_test/test_parenmatch.py
parent75cbeb5dac8f4f57777f053eee257dbba5553d98 (diff)
downloadcpython-6047b5537226efdcd2e3b460957fb44388ec2e99.zip
cpython-6047b5537226efdcd2e3b460957fb44388ec2e99.tar.gz
cpython-6047b5537226efdcd2e3b460957fb44388ec2e99.tar.bz2
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 e153952..95cc22c 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