@mock.patch('concurrent.futures.ProcessPoolExecutor')
def test_compile_pool_called(self, pool_mock):
    compileall.compile_dir(self.directory, quiet=True, workers=5)
    self.assertTrue(pool_mock.called)
@mock.patch('concurrent.futures.ProcessPoolExecutor')
def test_compile_pool_called(self, pool_mock):
    compileall.compile_dir(self.directory, quiet=True, workers=5)
    self.assertTrue(pool_mock.called)