Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
05dab096
Commit
05dab096
authored
Jun 04, 2016
by
Terry Jan Reedy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revise and synchronize idle_test.test_configdialog.
parent
c17a0b87
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
8 deletions
+6
-8
Lib/idlelib/idle_test/test_configdialog.py
Lib/idlelib/idle_test/test_configdialog.py
+6
-8
No files found.
Lib/idlelib/idle_test/test_configdialog.py
View file @
05dab096
'''Test idlelib.config
Handler
.
'''Test idlelib.config
Dialog
.
Coverage: 46% just by creating dialog.
The other half is code for working with user customizations.
'''
import
unittes
t
from
idlelib.configDialog
import
ConfigDialog
# always test impor
t
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__'
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment