fix off by one, since range() does not include the end of the range

This commit is contained in:
Nicolas Schneider 2016-04-06 21:35:51 +02:00
parent 32e0973ef1
commit 5decddf09f
1 changed files with 1 additions and 1 deletions

View File

@ -58,7 +58,7 @@ class AutoDeletedDir():
shutil.rmtree(self.dir) shutil.rmtree(self.dir)
return return
except OSError: except OSError:
if i == retries: if i == retries-1:
raise raise
passing_tests = 0 passing_tests = 0