Stop WrapFS unit tests throwing a RemoveRootError. Fixes Issue 121

parent 9a068857
...@@ -15,6 +15,7 @@ import tempfile ...@@ -15,6 +15,7 @@ import tempfile
from fs import osfs from fs import osfs
from fs.errors import * from fs.errors import *
from fs.path import * from fs.path import *
from fs.utils import remove_all
from fs import wrapfs from fs import wrapfs
import six import six
...@@ -61,7 +62,7 @@ class TestLimitSizeFS(TestWrapFS): ...@@ -61,7 +62,7 @@ class TestLimitSizeFS(TestWrapFS):
self.fs = LimitSizeFS(self.fs,1024*1024*2) # 2MB limit self.fs = LimitSizeFS(self.fs,1024*1024*2) # 2MB limit
def tearDown(self): def tearDown(self):
self.fs.removedir("/",force=True) remove_all(self.fs, "/")
self.assertEquals(self.fs.cur_size,0) self.assertEquals(self.fs.cur_size,0)
super(TestLimitSizeFS,self).tearDown() super(TestLimitSizeFS,self).tearDown()
self.fs.close() self.fs.close()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment