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:
Benjamin Peterson 2008-08-18 18:40:08 +00:00
parent 6640d72628
commit fae4c62b1a
4 changed files with 17 additions and 12 deletions

View file

@ -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