diff options
Diffstat (limited to 'Lib/test/test_multiprocessing.py')
| -rw-r--r-- | Lib/test/test_multiprocessing.py | 10 |
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 |
