Commit e92c9d12 by willmcgugan

Fix for mountfs tests

parent 7b002c1b
...@@ -72,7 +72,7 @@ class TestMountFS(unittest.TestCase,FSTestCases,ThreadingTestCases): ...@@ -72,7 +72,7 @@ class TestMountFS(unittest.TestCase,FSTestCases,ThreadingTestCases):
self.fs.close() self.fs.close()
def check(self, p): def check(self, p):
return self.mount_fs.exists(os.path.join("mounted/memfs", relpath(p))) return self.mount_fs.exists(pathjoin("mounted/memfs", relpath(p)))
class TestMountFS_atroot(unittest.TestCase,FSTestCases,ThreadingTestCases): class TestMountFS_atroot(unittest.TestCase,FSTestCases,ThreadingTestCases):
...@@ -101,7 +101,7 @@ class TestMountFS_stacked(unittest.TestCase,FSTestCases,ThreadingTestCases): ...@@ -101,7 +101,7 @@ class TestMountFS_stacked(unittest.TestCase,FSTestCases,ThreadingTestCases):
self.fs.close() self.fs.close()
def check(self, p): def check(self, p):
return self.mount_fs.exists(os.path.join("mem/two", relpath(p))) return self.mount_fs.exists(pathjoin("mem/two", relpath(p)))
from fs import tempfs from fs import tempfs
......
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