Fix sigterm handler test

This commit is contained in:
Andrew Godwin 2017-05-29 11:39:15 -07:00
parent 34a047a6ff
commit 601056f712

View File

@ -132,6 +132,5 @@ class WorkerGroupTests(ChannelTestCase):
t = threading.Thread(target=wkr.run) t = threading.Thread(target=wkr.run)
t.start() t.start()
threads.append(t) threads.append(t)
self.worker.sigterm_handler(None, None) with self.assertRaises(SystemExit):
for t in threads: self.worker.sigterm_handler(None, None)
t.join()