fix off by one, since range() does not include the end of the range
This commit is contained in:
parent
32e0973ef1
commit
5decddf09f
|
@ -58,7 +58,7 @@ class AutoDeletedDir():
|
|||
shutil.rmtree(self.dir)
|
||||
return
|
||||
except OSError:
|
||||
if i == retries:
|
||||
if i == retries-1:
|
||||
raise
|
||||
|
||||
passing_tests = 0
|
||||
|
|
Loading…
Reference in New Issue