summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorTerry Jan Reedy <tjreedy@udel.edu>2016-06-04 19:55:53 (GMT)
committerTerry Jan Reedy <tjreedy@udel.edu>2016-06-04 19:55:53 (GMT)
commit55de5c3de39a770c1de423f3fb5c34183a053316 (patch)
tree05453daa3e4a5eee9aaa38405140778a4585bbb8 /Lib
parent958b3e40581af8577c7213992d502786f87ec173 (diff)
parent05dab096c14402d4788f814b81352cc47f189218 (diff)
downloadcpython-55de5c3de39a770c1de423f3fb5c34183a053316.zip
cpython-55de5c3de39a770c1de423f3fb5c34183a053316.tar.gz
cpython-55de5c3de39a770c1de423f3fb5c34183a053316.tar.bz2
Merge: Revise and synchronize idle_test.test_configdialog.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/idlelib/idle_test/test_configdialog.py15
1 files changed, 7 insertions, 8 deletions
diff --git a/Lib/idlelib/idle_test/test_configdialog.py b/Lib/idlelib/idle_test/test_configdialog.py
index e4e1a31..4f5d216 100644
--- a/Lib/idlelib/idle_test/test_configdialog.py
+++ b/Lib/idlelib/idle_test/test_configdialog.py
@@ -1,21 +1,21 @@
'''Test idlelib.configdialog.
-Coverage: 46% just by creating dialog. The other half is change code.
+Coverage: 46% just by creating dialog.
+The other half is code for working with user customizations.
'''
-import unittest
+from idlelib.configdialog import ConfigDialog # always test import
from test.support import requires
+requires('gui')
from tkinter import Tk
-from idlelib.configdialog import ConfigDialog
-from idlelib.macosx import _initializeTkVariantTests
-
+import unittest
+from idlelib import macosx
class ConfigDialogTest(unittest.TestCase):
@classmethod
def setUpClass(cls):
- requires('gui')
cls.root = Tk()
- _initializeTkVariantTests(cls.root)
+ macosx._initializeTkVariantTests(cls.root)
@classmethod
def tearDownClass(cls):
@@ -26,7 +26,6 @@ class ConfigDialogTest(unittest.TestCase):
def test_dialog(self):
d = ConfigDialog(self.root, 'Test', _utest=True)
d.remove_var_callbacks()
- d.destroy()
if __name__ == '__main__':