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
598b2f6b
Commit
598b2f6b
authored
May 02, 2012
by
Charles-François Natali
Browse files
Options
Browse Files
Download
Plain Diff
Merge.
parents
360b3c21
225cb8d0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
8 deletions
+13
-8
Lib/test/test_multiprocessing.py
Lib/test/test_multiprocessing.py
+13
-8
No files found.
Lib/test/test_multiprocessing.py
View file @
598b2f6b
...
...
@@ -2555,6 +2555,8 @@ def _afunc(x):
def
pool_in_process
():
pool
=
multiprocessing
.
Pool
(
processes
=
4
)
x
=
pool
.
map
(
_afunc
,
[
1
,
2
,
3
,
4
,
5
,
6
,
7
])
pool
.
close
()
pool
.
join
()
class
_file_like
(
object
):
def
__init__
(
self
,
delegate
):
...
...
@@ -2808,14 +2810,17 @@ def test_main(run=None):
loadTestsFromTestCase
=
unittest
.
defaultTestLoader
.
loadTestsFromTestCase
suite
=
unittest
.
TestSuite
(
loadTestsFromTestCase
(
tc
)
for
tc
in
testcases
)
run
(
suite
)
ThreadsMixin
.
pool
.
terminate
()
ProcessesMixin
.
pool
.
terminate
()
ManagerMixin
.
pool
.
terminate
()
ManagerMixin
.
manager
.
shutdown
()
del
ProcessesMixin
.
pool
,
ThreadsMixin
.
pool
,
ManagerMixin
.
pool
try
:
run
(
suite
)
finally
:
ThreadsMixin
.
pool
.
terminate
()
ProcessesMixin
.
pool
.
terminate
()
ManagerMixin
.
pool
.
terminate
()
ManagerMixin
.
pool
.
join
()
ManagerMixin
.
manager
.
shutdown
()
ThreadsMixin
.
pool
.
join
()
ProcessesMixin
.
pool
.
join
()
del
ProcessesMixin
.
pool
,
ThreadsMixin
.
pool
,
ManagerMixin
.
pool
def
main
():
test_main
(
unittest
.
TextTestRunner
(
verbosity
=
2
).
run
)
...
...
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