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
00b1e0f7
Commit
00b1e0f7
authored
Aug 31, 2016
by
Terry Jan Reedy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue #27922: IDLE tests no longer flash tk widgets.
parent
c7bab7cb
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
13 additions
and
5 deletions
+13
-5
Lib/idlelib/idle_test/test_configdialog.py
Lib/idlelib/idle_test/test_configdialog.py
+1
-0
Lib/idlelib/idle_test/test_editmenu.py
Lib/idlelib/idle_test/test_editmenu.py
+1
-0
Lib/idlelib/idle_test/test_hyperparser.py
Lib/idlelib/idle_test/test_hyperparser.py
+1
-0
Lib/idlelib/idle_test/test_idlehistory.py
Lib/idlelib/idle_test/test_idlehistory.py
+1
-0
Lib/idlelib/idle_test/test_textview.py
Lib/idlelib/idle_test/test_textview.py
+7
-5
Lib/idlelib/idle_test/test_widgetredir.py
Lib/idlelib/idle_test/test_widgetredir.py
+2
-0
No files found.
Lib/idlelib/idle_test/test_configdialog.py
View file @
00b1e0f7
...
...
@@ -15,6 +15,7 @@ class ConfigDialogTest(unittest.TestCase):
@
classmethod
def
setUpClass
(
cls
):
cls
.
root
=
Tk
()
cls
.
root
.
withdraw
()
macosx
.
_initializeTkVariantTests
(
cls
.
root
)
@
classmethod
...
...
Lib/idlelib/idle_test/test_editmenu.py
View file @
00b1e0f7
...
...
@@ -16,6 +16,7 @@ class PasteTest(unittest.TestCase):
@
classmethod
def
setUpClass
(
cls
):
cls
.
root
=
root
=
tk
.
Tk
()
root
.
withdraw
()
PyShell
.
fix_x11_paste
(
root
)
cls
.
text
=
tk
.
Text
(
root
)
cls
.
entry
=
tk
.
Entry
(
root
)
...
...
Lib/idlelib/idle_test/test_hyperparser.py
View file @
00b1e0f7
...
...
@@ -37,6 +37,7 @@ class HyperParserTest(unittest.TestCase):
def
setUpClass
(
cls
):
requires
(
'gui'
)
cls
.
root
=
Tk
()
cls
.
root
.
withdraw
()
cls
.
text
=
Text
(
cls
.
root
)
cls
.
editwin
=
DummyEditwin
(
cls
.
text
)
...
...
Lib/idlelib/idle_test/test_idlehistory.py
View file @
00b1e0f7
...
...
@@ -68,6 +68,7 @@ class FetchTest(unittest.TestCase):
def
setUpClass
(
cls
):
requires
(
'gui'
)
cls
.
root
=
tk
.
Tk
()
cls
.
root
.
withdraw
()
def
setUp
(
self
):
self
.
text
=
text
=
TextWrapper
(
self
.
root
)
...
...
Lib/idlelib/idle_test/test_textview.py
View file @
00b1e0f7
...
...
@@ -20,15 +20,16 @@ from idlelib.idle_test.mock_tk import Mbox
def
setUpModule
():
global
root
root
=
Tk
()
root
.
withdraw
()
def
tearDownModule
():
global
root
root
.
update_idletasks
()
root
.
destroy
()
#
pyflakes falsely sees root as undefined
root
.
destroy
()
#
Pyflakes falsely sees root as undefined.
del
root
class
TV
(
tv
.
TextViewer
):
#
used by TextViewTest
class
TV
(
tv
.
TextViewer
):
#
Used in TextViewTest.
transient
=
Func
()
grab_set
=
Func
()
wait_window
=
Func
()
...
...
@@ -59,8 +60,8 @@ class TextViewTest(unittest.TestCase):
view
.
destroy
=
Func
()
view
.
Ok
()
self
.
assertTrue
(
view
.
destroy
.
called
)
del
view
.
destroy
#
unmask real function
view
.
destroy
del
view
.
destroy
#
Unmask real function.
view
.
destroy
()
class
textviewTest
(
unittest
.
TestCase
):
...
...
@@ -76,9 +77,10 @@ class textviewTest(unittest.TestCase):
del
cls
.
orig_mbox
def
test_view_text
(
self
):
# If modal True,
tkinter will error with 'can't invoke "event" command'
# If modal True,
get tk error 'can't invoke "event" command'.
view
=
tv
.
view_text
(
root
,
'Title'
,
'test text'
,
modal
=
False
)
self
.
assertIsInstance
(
view
,
tv
.
TextViewer
)
view
.
Ok
()
def
test_view_file
(
self
):
test_dir
=
os
.
path
.
dirname
(
__file__
)
...
...
Lib/idlelib/idle_test/test_widgetredir.py
View file @
00b1e0f7
...
...
@@ -15,6 +15,7 @@ class InitCloseTest(unittest.TestCase):
def
setUpClass
(
cls
):
requires
(
'gui'
)
cls
.
root
=
Tk
()
cls
.
root
.
withdraw
()
cls
.
text
=
Text
(
cls
.
root
)
@
classmethod
...
...
@@ -44,6 +45,7 @@ class WidgetRedirectorTest(unittest.TestCase):
def
setUpClass
(
cls
):
requires
(
'gui'
)
cls
.
root
=
Tk
()
cls
.
root
.
withdraw
()
cls
.
text
=
Text
(
cls
.
root
)
@
classmethod
...
...
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