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:
parent
40a46ad467
commit
3f3dc89a15
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue