| 3459 | @warnings_helper.ignore_fork_in_thread_deprecation_warnings() |
| 3460 | @support.skip_if_sanitizer('TSan: leaks threads', thread=True) |
| 3461 | def test_mymanager_context(self): |
| 3462 | manager = MyManager(shutdown_timeout=SHUTDOWN_TIMEOUT) |
| 3463 | with manager: |
| 3464 | self.common(manager) |
| 3465 | # bpo-30356: BaseManager._finalize_manager() sends SIGTERM |
| 3466 | # to the manager process if it takes longer than 1 second to stop, |
| 3467 | # which happens on slow buildbots. |
| 3468 | self.assertIn(manager._process.exitcode, (0, -signal.SIGTERM)) |
| 3469 | |
| 3470 | @warnings_helper.ignore_fork_in_thread_deprecation_warnings() |
| 3471 | @support.skip_if_sanitizer('TSan: leaks threads', thread=True) |