Extract remaining local "import gc" to module level by EliahKagan · Pull Request #1768 · gitpython-developers/GitPython
import gc import os import os.path as osp import shutil
def tearDown(self): import gc
gc.collect() shutil.rmtree(self.repo_dir) shutil.rmtree(self.submodule_dir)