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 84e5c54Copy full SHA for 84e5c54
aws_doc_sdk_examples_tools/fs_test.py
@@ -60,10 +60,18 @@ def path_factory(content: str) -> Path:
60
run_common_readlines_scenarios(fs, path_factory)
61
finally:
62
# Clean up temp files
63
- for path in temp_files:
64
- if path.exists():
65
- path.unlink()
66
-
+ errors = []
+ for path in temp_files:
+ try:
+ 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(f"Errors occurred while cleaning up temp files:\n{messages}")
75
76
class TestRecordFs:
77
"""Test RecordFs implementation of readlines."""
0 commit comments