@mock.patch('concurrent.futures.ProcessPoolExecutor', new=None)
@mock.patch('compileall.compile_file')
def test_compile_missing_multiprocessing(self, compile_file_mock):
    compileall.compile_dir(self.directory, quiet=True, workers=5)
    self.assertTrue(compile_file_mock.called)
@mock.patch('concurrent.futures.ProcessPoolExecutor', new=None)
@mock.patch('compileall.compile_file')
def test_compile_missing_multiprocessing(self, compile_file_mock):
    compileall.compile_dir(self.directory, quiet=True, workers=5)
    self.assertTrue(compile_file_mock.called)