devtools/httptest.py
changeset 9036 cf519fd876c6
parent 9030 c1d5e8ca15ea
child 9402 2c48c091b6a2
equal deleted inserted replaced
9035:63f3d25bab14 9036:cf519fd876c6
    99             finally:
    99             finally:
   100                 semaphore.release()
   100                 semaphore.release()
   101 
   101 
   102         reactor.addSystemEventTrigger('after', 'startup', semaphore.release)
   102         reactor.addSystemEventTrigger('after', 'startup', semaphore.release)
   103         t = threading.Thread(target=safe_run, name='cubicweb_test_web_server',
   103         t = threading.Thread(target=safe_run, name='cubicweb_test_web_server',
   104                              args=(self.config, True))
   104                 args=(self.config, True), kwargs={'repo': self.repo})
   105         self.web_thread = t
   105         self.web_thread = t
   106         t.start()
   106         t.start()
   107         semaphore.acquire()
   107         semaphore.acquire()
   108         if not self.web_thread.isAlive():
   108         if not self.web_thread.isAlive():
   109             # XXX race condition with actual thread death
   109             # XXX race condition with actual thread death