We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c034428 commit 778232aCopy full SHA for 778232a
aws_doc_sdk_examples_tools/fs_test.py
@@ -60,9 +60,20 @@ def path_factory(content: str) -> Path:
60
run_common_readlines_scenarios(fs, path_factory)
61
finally:
62
# Clean up temp files
63
+ errors = []
64
for path in temp_files:
- if path.exists():
65
- path.unlink()
+ try:
66
+ if path.exists():
67
+ path.unlink()
68
+ except Exception as e:
69
+ errors.append((path, e))
70
+ if errors:
71
+ messages = "\n".join(
72
+ f"{path}: {type(e).__name__}: {e}" for path, e in errors
73
+ )
74
+ pytest.fail(
75
+ f"Errors occurred while cleaning up temp files:\n{messages}"
76
77
78
79
class TestRecordFs:
0 commit comments