diff options
author | Terry Jan Reedy <tjreedy@udel.edu> | 2016-06-04 19:54:44 (GMT) |
---|---|---|
committer | Terry Jan Reedy <tjreedy@udel.edu> | 2016-06-04 19:54:44 (GMT) |
commit | 05dab096c14402d4788f814b81352cc47f189218 (patch) | |
tree | 7e3269f04c75f243ada96fd5d0fa0aeb8be67c6d /Lib/idlelib | |
parent | c17a0b87a682dab464d40a8ae1d16c009a1818ce (diff) | |
download | cpython-05dab096c14402d4788f814b81352cc47f189218.zip cpython-05dab096c14402d4788f814b81352cc47f189218.tar.gz cpython-05dab096c14402d4788f814b81352cc47f189218.tar.bz2 |
Revise and synchronize idle_test.test_configdialog.
Diffstat (limited to 'Lib/idlelib')
-rw-r--r-- | Lib/idlelib/idle_test/test_configdialog.py | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/Lib/idlelib/idle_test/test_configdialog.py b/Lib/idlelib/idle_test/test_configdialog.py index 4b413e2..b063601 100644 --- a/Lib/idlelib/idle_test/test_configdialog.py +++ b/Lib/idlelib/idle_test/test_configdialog.py @@ -1,22 +1,21 @@ -'''Test idlelib.configHandler. +'''Test idlelib.configDialog. 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.macosxSupport import _initializeTkVariantTests - +import unittest +from idlelib import macosxSupport as 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): @@ -27,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__': |