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
f3ba6a97
Commit
f3ba6a97
authored
Jun 11, 2016
by
Terry Jan Reedy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue #5124: For 2.7, move requires('gui') from module level to setUpClass.
parent
2e1b7fc9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
Lib/idlelib/idle_test/test_editmenu.py
Lib/idlelib/idle_test/test_editmenu.py
+1
-1
No files found.
Lib/idlelib/idle_test/test_editmenu.py
View file @
f3ba6a97
...
...
@@ -3,7 +3,6 @@
Edit modules have their own test files files
'''
from
test.test_support
import
requires
requires
(
'gui'
)
import
Tkinter
as
tk
import
unittest
from
idlelib
import
PyShell
...
...
@@ -15,6 +14,7 @@ class PasteTest(unittest.TestCase):
'''
@
classmethod
def
setUpClass
(
cls
):
requires
(
'gui'
)
cls
.
root
=
root
=
tk
.
Tk
()
PyShell
.
fix_x11_paste
(
root
)
cls
.
text
=
tk
.
Text
(
root
)
...
...
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