Example #1
0
 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)
Example #2
0
 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)
Example #3
0
 def tearDown(self):
     from calibre.utils.recycle_bin import restore_recyle
     restore_recyle()
     gc.collect(), gc.collect()
     shutil.rmtree(self.library_path)