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
7b503965
Commit
7b503965
authored
May 28, 2013
by
Terry Jan Reedy
Browse files
Options
Browse Files
Download
Plain Diff
Merge with 3.3
parents
1e170bae
eb4c9c77
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
8 deletions
+8
-8
Lib/idlelib/idle_test/README.txt
Lib/idlelib/idle_test/README.txt
+0
-0
Lib/test/test_idle.py
Lib/test/test_idle.py
+8
-8
No files found.
Lib/idlelib/idle_test/
@
README.txt
→
Lib/idlelib/idle_test/README.txt
View file @
7b503965
File moved
Lib/test/test_idle.py
View file @
7b503965
# Skip test if
tkinter
wasn't built or idlelib was deleted.
# Skip test if
_tkinter or _thread
wasn't built or idlelib was deleted.
from
test.support
import
import_module
import_module
(
'tkinter'
)
# discard return
itdir
=
import_module
(
'idlelib.idle_test'
)
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)
# imitates unittest.main by calling
# unittest.TestLoader().loadTestsFromModule(this_module)
# which look for load_tests and uses it if found.
load_tests
=
itdir
.
load_tests
# Without test_main present, regrtest.runtest_inner (line1219) calls
# unittest.TestLoader().loadTestsFromModule(this_module) which calls
# load_tests() if it finds it. (Unittest.main does the same.)
load_tests
=
idletest
.
load_tests
if
__name__
==
'__main__'
:
import
unittest
...
...
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