(self)
| 1371 | worker.pool.signal_safe = sigsafe |
| 1372 | |
| 1373 | def test_on_timer_error(self): |
| 1374 | worker = self.app.WorkController(concurrency=1, loglevel=0) |
| 1375 | |
| 1376 | try: |
| 1377 | raise KeyError('foo') |
| 1378 | except KeyError as exc: |
| 1379 | components.Timer(worker).on_timer_error(exc) |
| 1380 | msg, args = self.comp_logger.error.call_args[0] |
| 1381 | assert 'KeyError' in msg % args |
| 1382 | |
| 1383 | def test_on_timer_tick(self): |
| 1384 | worker = self.app.WorkController(concurrency=1, loglevel=10) |
nothing calls this directly
no test coverage detected