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/README.txt | |
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/README.txt')
-rw-r--r-- | Lib/idlelib/idle_test/README.txt | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Lib/idlelib/idle_test/README.txt b/Lib/idlelib/idle_test/README.txt index 39a19d0..01b31f6 100644 --- a/Lib/idlelib/idle_test/README.txt +++ b/Lib/idlelib/idle_test/README.txt @@ -71,9 +71,15 @@ deleted BEFORE root is destroyed. See https://bugs.python.org/issue20567. @classmethod def tearDownClass(cls): del cls.text + cls.root.update_idletasks() cls.root.destroy() del cls.root +The update_idletasks call is sometimes needed to prevent the following warning +either when running a test alone or as part of the test suite (#27196). + can't invoke "event" command: application has been destroyed + ... + "ttk::ThemeChanged" Requires('gui') causes the test(s) it guards to be skipped if any of these conditions are met: |