| 5184 | class _TestImportStar(unittest.TestCase): |
| 5185 | |
| 5186 | def get_module_names(self): |
| 5187 | import glob |
| 5188 | folder = os.path.dirname(multiprocessing.__file__) |
| 5189 | pattern = os.path.join(glob.escape(folder), '*.py') |
| 5190 | files = glob.glob(pattern) |
| 5191 | modules = [os.path.splitext(os.path.split(f)[1])[0] for f in files] |
| 5192 | modules = ['multiprocessing.' + m for m in modules] |
| 5193 | modules.remove('multiprocessing.__init__') |
| 5194 | modules.append('multiprocessing') |
| 5195 | return modules |
| 5196 | |
| 5197 | def test_import(self): |
| 5198 | modules = self.get_module_names() |