diff options
author | Andrei Zeliankou <zelenkov@nginx.com> | 2023-07-10 01:57:12 +0100 |
---|---|---|
committer | Andrei Zeliankou <zelenkov@nginx.com> | 2023-07-10 01:57:12 +0100 |
commit | 3c7743344b368ebcc3c1be54e68019923fe45b49 (patch) | |
tree | bf45b29d022ca584a68297ecd08229116572d300 /test/conftest.py | |
parent | de885feb0656fcce8f4a27d737e8507e57f4ab88 (diff) | |
download | unit-3c7743344b368ebcc3c1be54e68019923fe45b49.tar.gz unit-3c7743344b368ebcc3c1be54e68019923fe45b49.tar.bz2 |
Tests: fixed exception handling.
Diffstat (limited to 'test/conftest.py')
-rw-r--r-- | test/conftest.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/conftest.py b/test/conftest.py index 31709d24..8d2850fd 100644 --- a/test/conftest.py +++ b/test/conftest.py @@ -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) |