mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Fix dangling warning for test_multiprocessing
This commit is contained in:
parent
bf4e266397
commit
a6becaa9cb
2 changed files with 7 additions and 1 deletions
|
@ -548,7 +548,10 @@ class BaseManager(object):
|
|||
'''
|
||||
Join the manager process (if it has been spawned)
|
||||
'''
|
||||
self._process.join(timeout)
|
||||
if self._process is not None:
|
||||
self._process.join(timeout)
|
||||
if not self._process.is_alive():
|
||||
self._process = None
|
||||
|
||||
def _debug_info(self):
|
||||
'''
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue