travis-ci
13 of 13 new or added lines in 1 file covered. (100.0%)
3231 of 3587 relevant lines covered (90.08%)
5.16 hits per line
|
import errno |
6✔ |
|
import shutil |
6✔ |
3 |
|
|
4 |
|
|
|
def rmtree(*args, **kwargs): |
6✔ |
|
n = 4
|
6✔ |
|
for i in range(n): |
6✔ |
|
try:
|
6✔ |
|
shutil.rmtree(*args, **kwargs) |
6✔ |
|
break
|
6✔ |
|
except OSError as e: |
× |
|
if e.errno == errno.ENOENT:
|
× |
|
break
|
× |
|
elif i == (n - 1): |
× |
|
raise
|
× |