(self)
| 570 | self.assert_submit_would_block(other_task, task_tag) |
| 571 | |
| 572 | def test_shutdown(self): |
| 573 | slow_task = self.get_sleep_task() |
| 574 | future = self.executor.submit(slow_task) |
| 575 | self.executor.shutdown() |
| 576 | # Ensure that the shutdown waits until the task is done |
| 577 | self.assertTrue(future.done()) |
| 578 | |
| 579 | @unittest.skipIf( |
| 580 | os.environ.get('USE_SERIAL_EXECUTOR'), |
nothing calls this directly
no test coverage detected