From 3c7743344b368ebcc3c1be54e68019923fe45b49 Mon Sep 17 00:00:00 2001 From: Andrei Zeliankou Date: Mon, 10 Jul 2023 01:57:12 +0100 Subject: Tests: fixed exception handling. --- test/conftest.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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) -- cgit