diff options
author | Terry Jan Reedy <tjreedy@udel.edu> | 2016-06-04 03:53:56 (GMT) |
---|---|---|
committer | Terry Jan Reedy <tjreedy@udel.edu> | 2016-06-04 03:53:56 (GMT) |
commit | 6047b5537226efdcd2e3b460957fb44388ec2e99 (patch) | |
tree | 078a11b878d2fff040d3805b03946f0dda4ef51c /Lib/idlelib/idle_test/test_textview.py | |
parent | 75cbeb5dac8f4f57777f053eee257dbba5553d98 (diff) | |
download | cpython-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.py | 3 |
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 |