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.
This commit is contained in:
Terry Jan Reedy 2016-08-10 15:15:25 -04:00
parent 40a46ad467
commit 3f3dc89a15
2 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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