summaryrefslogtreecommitdiffstats
path: root/Lib/idlelib
diff options
context:
space:
mode:
authorTerry Jan Reedy <tjreedy@udel.edu>2016-08-10 19:15:25 (GMT)
committerTerry Jan Reedy <tjreedy@udel.edu>2016-08-10 19:15:25 (GMT)
commit3f3dc89a156c2ab0ea340851dd3d4fd510865163 (patch)
treedb8b6946c310e7ff8e7e2f780f8898d77197182a /Lib/idlelib
parent40a46ad46776515d7f0c3ac08cd6ac081058ece0 (diff)
downloadcpython-3f3dc89a156c2ab0ea340851dd3d4fd510865163.zip
cpython-3f3dc89a156c2ab0ea340851dd3d4fd510865163.tar.gz
cpython-3f3dc89a156c2ab0ea340851dd3d4fd510865163.tar.bz2
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')
-rw-r--r--Lib/idlelib/idle_test/test_config_key.py3
-rw-r--r--Lib/idlelib/idle_test/test_textview.py3
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 8109829..59d8e81 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 0c625ee..c1edcb0 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