diff options
author | Terry Jan Reedy <tjreedy@udel.edu> | 2016-08-10 15:15:25 -0400 |
---|---|---|
committer | Terry Jan Reedy <tjreedy@udel.edu> | 2016-08-10 15:15:25 -0400 |
commit | 65a19c41b6a398312aa69e55843f60c219f15e99 (patch) | |
tree | 6e671f77ae6f3b4f1f28293d32a179723322e0a7 /Lib/idlelib/idle_test | |
parent | a13bf1ff3eed70c03f723a55c399716e264d226e (diff) | |
download | cpython-65a19c41b6a398312aa69e55843f60c219f15e99.tar.gz |
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.
Diffstat (limited to 'Lib/idlelib/idle_test')
-rw-r--r-- | Lib/idlelib/idle_test/test_config_key.py | 3 | ||||
-rw-r--r-- | Lib/idlelib/idle_test/test_textview.py | 3 |
2 files changed, 3 insertions, 3 deletions
diff --git a/Lib/idlelib/idle_test/test_config_key.py b/Lib/idlelib/idle_test/test_config_key.py index 8109829f10..59d8e817e3 100644 --- a/Lib/idlelib/idle_test/test_config_key.py +++ b/Lib/idlelib/idle_test/test_config_key.py @@ -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 @@ class GetKeysTest(unittest.TestCase): @classmethod def tearDownClass(cls): + cls.root.update() # Stop "can't run event command" warning. cls.root.destroy() del cls.root diff --git a/Lib/idlelib/idle_test/test_textview.py b/Lib/idlelib/idle_test/test_textview.py index 0c625eefe9..c1edcb040c 100644 --- a/Lib/idlelib/idle_test/test_textview.py +++ b/Lib/idlelib/idle_test/test_textview.py @@ -22,8 +22,7 @@ def setUpModule(): root = Tk() def tearDownModule(): - global root, TV - del TV + global root root.update_idletasks() root.destroy() # pyflakes falsely sees root as undefined del root |