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
4965dafd
Commit
4965dafd
authored
May 30, 2013
by
Terry Jan Reedy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue #15392: Use test.test_support, as used test.support in 3.x.
parent
5783febe
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
7 deletions
+4
-7
Lib/test/test_idle.py
Lib/test/test_idle.py
+4
-7
No files found.
Lib/test/test_idle.py
View file @
4965dafd
# Skip test if _tkinter or _thread wasn't built or idlelib was deleted.
try
:
import
Tkinter
import
threading
# imported by PyShell, imports _thread
import
idlelib.idle_test
as
idletest
except
ImportError
:
import
unittest
raise
unittest
.
SkipTest
from
test.test_support
import
import_module
import_module
(
'Tkinter'
)
import_module
(
'threading'
)
# imported by PyShell, imports _thread
idletest
=
import_module
(
'idlelib.idle_test'
)
# Without test_main present, regrtest.runtest_inner (line1219) calls
# unittest.TestLoader().loadTestsFromModule(this_module) which calls
...
...
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