mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Be a little more insistent when cleaning up test dir
This commit is contained in:
parent
8f17d21390
commit
c55cb4365a
@ -62,7 +62,12 @@ class IPCLockTest(unittest.TestCase):
|
||||
|
||||
def tearDown(self):
|
||||
os.chdir(self.cwd)
|
||||
for i in range(100):
|
||||
try:
|
||||
shutil.rmtree(self.tdir)
|
||||
break
|
||||
except EnvironmentError:
|
||||
time.sleep(0.1)
|
||||
|
||||
def test_exclusive_file_same_process(self):
|
||||
fname = 'testsp'
|
||||
|
Loading…
x
Reference in New Issue
Block a user