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
578aa4cb
Commit
578aa4cb
authored
Jun 13, 2014
by
Terry Jan Reedy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue #20043: Add direct test for _thread.
parent
6af1ca77
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
Lib/test/test_multiprocessing_main_handling.py
Lib/test/test_multiprocessing_main_handling.py
+4
-3
No files found.
Lib/test/test_multiprocessing_main_handling.py
View file @
578aa4cb
# tests __main__ module handling in multiprocessing
from
test
import
support
# Skip tests if _thread or _multiprocessing wasn't built.
support
.
import_module
(
'_thread'
)
support
.
import_module
(
'_multiprocessing'
)
import
importlib
import
importlib.machinery
...
...
@@ -9,14 +13,11 @@ import os
import
os.path
import
py_compile
from
test
import
support
from
test.script_helper
import
(
make_pkg
,
make_script
,
make_zip_pkg
,
make_zip_script
,
assert_python_ok
,
assert_python_failure
,
temp_dir
,
spawn_python
,
kill_python
)
# Skip tests if _multiprocessing wasn't built.
_multiprocessing
=
support
.
import_module
(
'_multiprocessing'
)
# Look up which start methods are available to test
import
multiprocessing
AVAILABLE_START_METHODS
=
set
(
multiprocessing
.
get_all_start_methods
())
...
...
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