diff options
author | rfkelly0 <rfkelly0@67cdc799-7952-0410-af00-57a81ceafa0f> | 2009-06-15 12:30:05 +0000 |
---|---|---|
committer | rfkelly0 <rfkelly0@67cdc799-7952-0410-af00-57a81ceafa0f> | 2009-06-15 12:30:05 +0000 |
commit | aa592ac75e0bc6c934f766457d7a66fc8c0b1b2f (patch) | |
tree | 2344f5585aeeef42151369a4164c1ea710b55bb5 | |
parent | ec53eb2267d4e68bb6946910524537fa1f987a5e (diff) | |
download | pyfilesystem-aa592ac75e0bc6c934f766457d7a66fc8c0b1b2f.tar.gz |
don't try to pickle a SubFS of a TempFS, seems to give errors in __del__
git-svn-id: http://pyfilesystem.googlecode.com/svn/branches/rfk-ideas@171 67cdc799-7952-0410-af00-57a81ceafa0f
-rw-r--r-- | fs/tests/test_expose.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/fs/tests/test_expose.py b/fs/tests/test_expose.py index a76353d..4fefc6b 100644 --- a/fs/tests/test_expose.py +++ b/fs/tests/test_expose.py @@ -13,6 +13,7 @@ import time from fs.tests import FSTestCases from fs.tempfs import TempFS +from fs.osfs import OSFS from fs.path import * from fs import rpcfs @@ -106,11 +107,12 @@ class TestFUSE(unittest.TestCase,FSTestCases): self.temp_fs.makedir("mount") self.mounted_fs = self.temp_fs.opendir("root") self.mount_point = self.temp_fs.getsyspath("mount") - self.fs = self.temp_fs.opendir("mount") + self.fs = OSFS(self.temp_fs.getsyspath("mount")) self.mount_proc = fuse.mount(self.mounted_fs,self.mount_point) def tearDown(self): self.mount_proc.unmount() + self.temp_fs.close() def check(self,p): return self.mounted_fs.exists(p) |