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 fdf8594 commit c6b71b7Copy full SHA for c6b71b7
fs/tempfs.py
@@ -86,6 +86,7 @@ def clean(self):
86
except Exception as error:
87
if not self._ignore_clean_errors:
88
raise errors.OperationFailed(
89
- msg="failed to remove temporary directory", exc=error
+ msg="failed to remove temporary directory; {}".format(error),
90
+ exc=error,
91
)
92
self._cleaned = True
tests/test_osfs.py
@@ -28,6 +28,11 @@ def make_fs(self):
28
29
def destroy_fs(self, fs):
30
self.fs.close()
31
+ try:
32
+ shutil.rmtree(fs.getsyspath("/"))
33
+ except OSError:
34
+ # Already deleted
35
+ pass
36
37
def _get_real_path(self, path):
38
_path = os.path.join(self.fs.root_path, relpath(path))
0 commit comments