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
3049f124
Commit
3049f124
authored
Jun 15, 2012
by
Richard Oudkerk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Increase timeout used when waiting for manager to shutdown cleanly
before resorting to terminate()
parent
0f52346e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletion
+6
-1
Lib/multiprocessing/managers.py
Lib/multiprocessing/managers.py
+1
-1
Lib/test/test_multiprocessing.py
Lib/test/test_multiprocessing.py
+5
-0
No files found.
Lib/multiprocessing/managers.py
View file @
3049f124
...
...
@@ -582,7 +582,7 @@ class BaseManager(object):
except
Exception
:
pass
process
.
join
(
timeout
=
0.2
)
process
.
join
(
timeout
=
1.0
)
if
process
.
is_alive
():
util
.
info
(
'manager still alive'
)
if
hasattr
(
process
,
'terminate'
):
...
...
Lib/test/test_multiprocessing.py
View file @
3049f124
...
...
@@ -1820,6 +1820,11 @@ class _TestZZZNumberOfObjects(BaseTestCase):
# run after all the other tests for the manager. It tests that
# there have been no "reference leaks" for the manager's shared
# objects. Note the comment in _TestPool.test_terminate().
# If some other test using ManagerMixin.manager fails, then the
# raised exception may keep alive a frame which holds a reference
# to a managed object. This will cause test_number_of_objects to
# also fail.
ALLOWED_TYPES
=
(
'manager'
,)
def
test_number_of_objects
(
self
):
...
...
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