Beispiel #1
0
 def test_fileno(self):
     self.assertIsInstance(selectors.DefaultSelector().fileno(), int)
Beispiel #2
0
 def init_process(self):
     self.tpool = futures.ThreadPoolExecutor(max_workers=self.cfg.threads)
     self.poller = selectors.DefaultSelector()
     super(ThreadWorker, self).init_process()