summaryrefslogtreecommitdiff
path: root/fs/tests
diff options
context:
space:
mode:
authorgcode@loowis.durge.org <gcode@loowis.durge.org@67cdc799-7952-0410-af00-57a81ceafa0f>2012-08-11 20:02:36 +0000
committergcode@loowis.durge.org <gcode@loowis.durge.org@67cdc799-7952-0410-af00-57a81ceafa0f>2012-08-11 20:02:36 +0000
commitcdaf58cd96bc19a6473f5c53a97533efff5a5050 (patch)
treeac56d3d92702f98c881dd6b83be45c56556638d3 /fs/tests
parent9a0688576c112b2a91e68a2fac8dcce0442b25a1 (diff)
downloadpyfilesystem-git-cdaf58cd96bc19a6473f5c53a97533efff5a5050.tar.gz
Stop WrapFS unit tests throwing a RemoveRootError. Fixes Issue 121
Diffstat (limited to 'fs/tests')
-rw-r--r--fs/tests/test_wrapfs.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/tests/test_wrapfs.py b/fs/tests/test_wrapfs.py
index befd8b3..153026a 100644
--- a/fs/tests/test_wrapfs.py
+++ b/fs/tests/test_wrapfs.py
@@ -15,6 +15,7 @@ import tempfile
from fs import osfs
from fs.errors import *
from fs.path import *
+from fs.utils import remove_all
from fs import wrapfs
import six
@@ -61,7 +62,7 @@ class TestLimitSizeFS(TestWrapFS):
self.fs = LimitSizeFS(self.fs,1024*1024*2) # 2MB limit
def tearDown(self):
- self.fs.removedir("/",force=True)
+ remove_all(self.fs, "/")
self.assertEquals(self.fs.cur_size,0)
super(TestLimitSizeFS,self).tearDown()
self.fs.close()