Tests: fixed exception handling.
This commit is contained in:
parent
de885feb06
commit
3c7743344b
1 changed files with 3 additions and 1 deletions
|
@ -446,7 +446,9 @@ def _clear_temp_dir():
|
|||
shutil.rmtree(path)
|
||||
break
|
||||
except OSError as err:
|
||||
if err.errno != 16:
|
||||
# OSError: [Errno 16] Device or resource busy
|
||||
# OSError: [Errno 39] Directory not empty
|
||||
if err.errno not in [16, 39]:
|
||||
raise
|
||||
time.sleep(1)
|
||||
|
||||
|
|
Loading…
Reference in a new issue