(self)
| 855 | |
| 856 | @skipUnless(_have_multiprocessing, "requires multiprocessing") |
| 857 | def test_workers(self): |
| 858 | bar2fn = script_helper.make_script(self.directory, 'bar2', '') |
| 859 | files = [] |
| 860 | for suffix in range(5): |
| 861 | pkgdir = os.path.join(self.directory, 'foo{}'.format(suffix)) |
| 862 | os.mkdir(pkgdir) |
| 863 | fn = script_helper.make_script(pkgdir, '__init__', '') |
| 864 | files.append(script_helper.make_script(pkgdir, 'bar2', '')) |
| 865 | |
| 866 | self.assertRunOK(self.directory, '-j', '0') |
| 867 | self.assertCompiled(bar2fn) |
| 868 | for file in files: |
| 869 | self.assertCompiled(file) |
| 870 | |
| 871 | @mock.patch('compileall.compile_dir') |
| 872 | def test_workers_available_cores(self, compile_dir): |
nothing calls this directly
no test coverage detected