changeset: 102608:b10a312f6d00 user: Terry Jan Reedy date: Wed Aug 10 15:15:25 2016 -0400 files: Lib/idlelib/idle_test/test_config_key.py Lib/idlelib/idle_test/test_textview.py description: Issue #27714: text_textview now passes when re-run in the same process because test_idle failed while running with test -w (and no -jn). Prevent a non-fatal warning from test_config_key. diff -r 8f37d772f71f -r b10a312f6d00 Lib/idlelib/idle_test/test_config_key.py --- a/Lib/idlelib/idle_test/test_config_key.py Wed Aug 10 13:16:26 2016 -0400 +++ b/Lib/idlelib/idle_test/test_config_key.py Wed Aug 10 15:15:25 2016 -0400 @@ -1,6 +1,6 @@ ''' Test idlelib.config_key. -Coverage: 56% +Coverage: 56% from creating and closing dialog. ''' from idlelib import config_key from test.support import requires @@ -17,6 +17,7 @@ @classmethod def tearDownClass(cls): + cls.root.update() # Stop "can't run event command" warning. cls.root.destroy() del cls.root diff -r 8f37d772f71f -r b10a312f6d00 Lib/idlelib/idle_test/test_textview.py --- a/Lib/idlelib/idle_test/test_textview.py Wed Aug 10 13:16:26 2016 -0400 +++ b/Lib/idlelib/idle_test/test_textview.py Wed Aug 10 15:15:25 2016 -0400 @@ -22,8 +22,7 @@ root = Tk() def tearDownModule(): - global root, TV - del TV + global root root.update_idletasks() root.destroy() # pyflakes falsely sees root as undefined del root