Commit be9ea223 by rfkelly0

allow tests to re-assign self.fs without ill-affect

parent 14ca0ee8
......@@ -553,9 +553,11 @@ class ThreadingTestCases:
if self.fs.exists(subdir):
self.fs.removedir(subdir,force=True)
self.fs.makedir(subdir)
this.fs = self.fs.opendir(subdir)
self._yield()
getattr(this,meth)()
@property
def fs(this):
return self.fs.opendir(this.subdir)
def check(this,p):
return self.check(pathjoin(this.subdir,relpath(p)))
def thread1():
......
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