summaryrefslogtreecommitdiffstats
path: root/Lib/test
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2008-08-18 18:31:58 (GMT)
committerBenjamin Peterson <benjamin@python.org>2008-08-18 18:31:58 (GMT)
commit82aa2010229a9305cd95a1f66acd8a0f5986cb85 (patch)
tree082157d6be019816aa6eb00711e4482655bad73c /Lib/test
parentd810626f99e7033f8e2ea3506f6430bc9b261d0a (diff)
downloadcpython-82aa2010229a9305cd95a1f66acd8a0f5986cb85.zip
cpython-82aa2010229a9305cd95a1f66acd8a0f5986cb85.tar.gz
cpython-82aa2010229a9305cd95a1f66acd8a0f5986cb85.tar.bz2
patch up multiprocessing until it's API can be changed too
Diffstat (limited to 'Lib/test')
-rw-r--r--Lib/test/test_multiprocessing.py10
1 files changed, 8 insertions, 2 deletions
diff --git a/Lib/test/test_multiprocessing.py b/Lib/test/test_multiprocessing.py
index 63e34c6..c3b1c82 100644
--- a/Lib/test/test_multiprocessing.py
+++ b/Lib/test/test_multiprocessing.py
@@ -619,11 +619,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