示例#1
0
文件: base.py 项目: KyoYang/calibre
 def tearDown(self):
     from calibre.utils.recycle_bin import restore_recyle
     restore_recyle()
     gc.collect(), gc.collect()
     try:
         shutil.rmtree(self.library_path)
     except EnvironmentError:
         # Try again in case something transient has a file lock on windows
         gc.collect(), gc.collect()
         time.sleep(2)
         shutil.rmtree(self.library_path)
示例#2
0
文件: base.py 项目: tokot/calibre
 def tearDown(self):
     from calibre.utils.recycle_bin import restore_recyle
     restore_recyle()
     gc.collect(), gc.collect()
     try:
         shutil.rmtree(self.library_path)
     except EnvironmentError:
         # Try again in case something transient has a file lock on windows
         gc.collect(), gc.collect()
         time.sleep(2)
         shutil.rmtree(self.library_path)
示例#3
0
 def tearDown(self):
     from calibre.utils.recycle_bin import restore_recyle
     restore_recyle()
     gc.collect(), gc.collect()
     shutil.rmtree(self.library_path)