* WebHost: reset Generator proc title on error * WebHost: fix shutting down autogen This is still not perfect but solves some of the issues. * WebHost: properly propagate JOB_TIME * WebHost: handle autogen shutdown
15 lines
354 B
Python
15 lines
354 B
Python
import unittest
|
|
|
|
from Utils import DaemonThreadPoolExecutor
|
|
|
|
|
|
class DaemonThreadPoolExecutorTest(unittest.TestCase):
|
|
def test_is_daemon(self) -> None:
|
|
def run() -> None:
|
|
pass
|
|
|
|
with DaemonThreadPoolExecutor(1) as executor:
|
|
executor.submit(run)
|
|
|
|
self.assertTrue(next(iter(executor._threads)).daemon)
|