| 3173 | ALLOWED_TYPES = ('manager',) |
| 3174 | |
| 3175 | def test_mymanager(self): |
| 3176 | manager = MyManager(shutdown_timeout=SHUTDOWN_TIMEOUT) |
| 3177 | manager.start() |
| 3178 | self.common(manager) |
| 3179 | manager.shutdown() |
| 3180 | |
| 3181 | # bpo-30356: BaseManager._finalize_manager() sends SIGTERM |
| 3182 | # to the manager process if it takes longer than 1 second to stop, |
| 3183 | # which happens on slow buildbots. |
| 3184 | self.assertIn(manager._process.exitcode, (0, -signal.SIGTERM)) |
| 3185 | |
| 3186 | def test_mymanager_context(self): |
| 3187 | manager = MyManager(shutdown_timeout=SHUTDOWN_TIMEOUT) |