(self, scheduler)
| 24 | self.pattern = pattern |
| 25 | |
| 26 | async def start(self, scheduler): |
| 27 | # Record the modules that have been imported when the scheduler starts |
| 28 | self.start_modules = set() |
| 29 | for mod in set(sys.modules): |
| 30 | if not mod.startswith(self.pattern): |
| 31 | self.start_modules.add(mod) |
| 32 | else: |
| 33 | # Manually remove the target library |
| 34 | sys.modules.pop(mod) |
| 35 | |
| 36 | |
| 37 | def test_array_chunk_shape_dep(): |
no test coverage detected