diff --git a/tests/test_examples.py b/tests/test_examples.py index 7e9d5d0de..f16200f44 100644 --- a/tests/test_examples.py +++ b/tests/test_examples.py @@ -339,7 +339,11 @@ def _sort_by_extension(path): ) yield installer, install_dir if KEEP_ARTIFACTS_PATH: - shutil.move(str(installer), str(KEEP_ARTIFACTS_PATH)) + try: + shutil.move(str(installer), str(KEEP_ARTIFACTS_PATH)) + except shutil.Error: + # Some tests reuse the examples for different checks; ignore errors + pass @lru_cache(maxsize=None)