File tree Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Original file line number Diff line number Diff line change 1
- '''Test idlelib.configHandler .
1
+ '''Test idlelib.configDialog .
2
2
3
3
Coverage: 46% just by creating dialog.
4
4
The other half is code for working with user customizations.
5
5
'''
6
- import unittest
6
+ from idlelib . configDialog import ConfigDialog # always test import
7
7
from test .support import requires
8
+ requires ('gui' )
8
9
from tkinter import Tk
9
- from idlelib .configDialog import ConfigDialog
10
- from idlelib .macosxSupport import _initializeTkVariantTests
11
-
10
+ import unittest
11
+ from idlelib import macosxSupport as macosx
12
12
13
13
class ConfigDialogTest (unittest .TestCase ):
14
14
15
15
@classmethod
16
16
def setUpClass (cls ):
17
- requires ('gui' )
18
17
cls .root = Tk ()
19
- _initializeTkVariantTests (cls .root )
18
+ macosx . _initializeTkVariantTests (cls .root )
20
19
21
20
@classmethod
22
21
def tearDownClass (cls ):
@@ -27,7 +26,6 @@ def tearDownClass(cls):
27
26
def test_dialog (self ):
28
27
d = ConfigDialog (self .root , 'Test' , _utest = True )
29
28
d .remove_var_callbacks ()
30
- d .destroy ()
31
29
32
30
33
31
if __name__ == '__main__' :
You can’t perform that action at this time.
0 commit comments