Commit 05dab096 authored by Terry Jan Reedy's avatar Terry Jan Reedy

Revise and synchronize idle_test.test_configdialog.

parent c17a0b87
'''Test idlelib.configHandler. '''Test idlelib.configDialog.
Coverage: 46% just by creating dialog. Coverage: 46% just by creating dialog.
The other half is code for working with user customizations. 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 from test.support import requires
requires('gui')
from tkinter import Tk from tkinter import Tk
from idlelib.configDialog import ConfigDialog import unittest
from idlelib.macosxSupport import _initializeTkVariantTests from idlelib import macosxSupport as macosx
class ConfigDialogTest(unittest.TestCase): class ConfigDialogTest(unittest.TestCase):
@classmethod @classmethod
def setUpClass(cls): def setUpClass(cls):
requires('gui')
cls.root = Tk() cls.root = Tk()
_initializeTkVariantTests(cls.root) macosx._initializeTkVariantTests(cls.root)
@classmethod @classmethod
def tearDownClass(cls): def tearDownClass(cls):
...@@ -27,7 +26,6 @@ class ConfigDialogTest(unittest.TestCase): ...@@ -27,7 +26,6 @@ class ConfigDialogTest(unittest.TestCase):
def test_dialog(self): def test_dialog(self):
d = ConfigDialog(self.root, 'Test', _utest=True) d = ConfigDialog(self.root, 'Test', _utest=True)
d.remove_var_callbacks() d.remove_var_callbacks()
d.destroy()
if __name__ == '__main__': if __name__ == '__main__':
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment