| 4878 | class _TestImportStar(unittest.TestCase): |
| 4879 | |
| 4880 | def get_module_names(self): |
| 4881 | import glob |
| 4882 | folder = os.path.dirname(multiprocessing.__file__) |
| 4883 | pattern = os.path.join(glob.escape(folder), '*.py') |
| 4884 | files = glob.glob(pattern) |
| 4885 | modules = [os.path.splitext(os.path.split(f)[1])[0] for f in files] |
| 4886 | modules = ['multiprocessing.' + m for m in modules] |
| 4887 | modules.remove('multiprocessing.__init__') |
| 4888 | modules.append('multiprocessing') |
| 4889 | return modules |
| 4890 | |
| 4891 | def test_import(self): |
| 4892 | modules = self.get_module_names() |