@skipUnless(_have_multiprocessing, 'requires multiprocessing')
def test_workers(self):
    bar2fn = script_helper.make_script(self.directory, 'bar2', '')
    files = []
    for suffix in range(5):
        pkgdir = os.path.join(self.directory, 'foo{}'.format(suffix))
        os.mkdir(pkgdir)
        fn = script_helper.make_script(pkgdir, '__init__', '')
        files.append(script_helper.make_script(pkgdir, 'bar2', ''))
    self.assertRunOK(self.directory, '-j', '0')
    self.assertCompiled(bar2fn)
    for file in files:
        self.assertCompiled(file)
@skipUnless(_have_multiprocessing, 'requires multiprocessing')
def test_workers(self):
    bar2fn = script_helper.make_script(self.directory, 'bar2', )
    files = []
    for suffix in range(5):
        pkgdir = os.path.join(self.directory, 'foo{}'.format(suffix))
        os.mkdir(pkgdir)
        fn = script_helper.make_script(pkgdir, '__init__', )
        files.append(script_helper.make_script(pkgdir, 'bar2', ))
    self.assertRunOK(self.directory, '-j', '0')
    self.assertCompiled(bar2fn)
    for file in files:
        self.assertCompiled(file)