mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-09 04:34:27 +02:00
Be a little more insistent when cleaning up test dir
This commit is contained in:
parent
8f17d21390
commit
c55cb4365a
1 changed files with 6 additions and 1 deletions
|
|
@ -62,7 +62,12 @@ def setUp(self):
|
|||
|
||||
def tearDown(self):
|
||||
os.chdir(self.cwd)
|
||||
shutil.rmtree(self.tdir)
|
||||
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…
Reference in a new issue