mirror of
https://github.com/python/cpython.git
synced 2025-08-30 21:48:47 +00:00
Merged revisions 65828 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk ........ r65828 | benjamin.peterson | 2008-08-18 13:31:58 -0500 (Mon, 18 Aug 2008) | 1 line patch up multiprocessing until it's API can be changed too ........
This commit is contained in:
parent
6640d72628
commit
fae4c62b1a
4 changed files with 17 additions and 12 deletions
|
@ -620,11 +620,17 @@ class _TestCondition(BaseTestCase):
|
|||
woken = self.Semaphore(0)
|
||||
|
||||
p = self.Process(target=self.f, args=(cond, sleeping, woken))
|
||||
p.set_daemon(True)
|
||||
try:
|
||||
p.set_daemon(True)
|
||||
except AttributeError:
|
||||
p.daemon = True
|
||||
p.start()
|
||||
|
||||
p = threading.Thread(target=self.f, args=(cond, sleeping, woken))
|
||||
p.set_daemon(True)
|
||||
try:
|
||||
p.set_daemon(True)
|
||||
except AttributeError:
|
||||
p.daemon = True
|
||||
p.start()
|
||||
|
||||
# wait for both children to start sleeping
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue