[Python-checkins] cpython (3.5): Revise and synchronize idle_test.test_configdialog.

terry.reedy python-checkins at python.org
Sat Jun 4 15:56:12 EDT 2016


https://hg.python.org/cpython/rev/ab974f1ebebe
changeset:   101711:ab974f1ebebe
branch:      3.5
parent:      101708:8136f9623d7f
user:        Terry Jan Reedy <tjreedy at udel.edu>
date:        Sat Jun 04 15:54:44 2016 -0400
summary:
  Revise and synchronize idle_test.test_configdialog.

files:
  Lib/idlelib/idle_test/test_configdialog.py |  16 ++++-----
  1 files changed, 7 insertions(+), 9 deletions(-)


diff --git a/Lib/idlelib/idle_test/test_configdialog.py b/Lib/idlelib/idle_test/test_configdialog.py
--- 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.
 '''
+from idlelib.configDialog import ConfigDialog  # always test import
+from test.support import requires
+requires('gui')
+from tkinter import Tk
 import unittest
-from test.support import requires
-from tkinter import Tk
-from idlelib.configDialog import ConfigDialog
-from idlelib.macosxSupport import _initializeTkVariantTests
-
+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 @@
     def test_dialog(self):
         d = ConfigDialog(self.root, 'Test', _utest=True)
         d.remove_var_callbacks()
-        d.destroy()
 
 
 if __name__ == '__main__':

-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list