summaryrefslogtreecommitdiffstats
path: root/Lib/idlelib/idle_test/test_textview.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_textview.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_textview.py')
-rw-r--r--Lib/idlelib/idle_test/test_textview.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/idlelib/idle_test/test_textview.py b/Lib/idlelib/idle_test/test_textview.py
index 1a75e95..02d1472 100644
--- a/Lib/idlelib/idle_test/test_textview.py
+++ b/Lib/idlelib/idle_test/test_textview.py
@@ -1,4 +1,4 @@
-'''Test the functions and main class method of textView.py.
+'''Test idlelib.textView.
Since all methods and functions create (or destroy) a TextViewer, which
is a widget containing multiple widgets, all tests must be gui tests.
@@ -24,6 +24,7 @@ def setUpModule():
def tearDownModule():
global root, TV
del TV
+ root.update_idletasks()
root.destroy() # pyflakes falsely sees root as undefined
del root