Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
pyfs
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
pyfs
Commits
cdaf58cd
Commit
cdaf58cd
authored
Aug 11, 2012
by
gcode@loowis.durge.org
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Stop WrapFS unit tests throwing a RemoveRootError. Fixes Issue 121
parent
9a068857
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletions
+2
-1
fs/tests/test_wrapfs.py
+2
-1
No files found.
fs/tests/test_wrapfs.py
View file @
cdaf58cd
...
@@ -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
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment