Commit e4ea9df6 by rfkelly0

fix cleanup of unicode dirs when running tests on win32

parent 7aa78432
...@@ -21,7 +21,7 @@ class TestOSFS(unittest.TestCase,FSTestCases,ThreadingTestCases): ...@@ -21,7 +21,7 @@ class TestOSFS(unittest.TestCase,FSTestCases,ThreadingTestCases):
def setUp(self): def setUp(self):
sys.setcheckinterval(1) sys.setcheckinterval(1)
self.temp_dir = tempfile.mkdtemp("fstest") self.temp_dir = tempfile.mkdtemp(u"fstest")
self.fs = osfs.OSFS(self.temp_dir) self.fs = osfs.OSFS(self.temp_dir)
def tearDown(self): def tearDown(self):
...@@ -36,7 +36,7 @@ class TestSubFS(unittest.TestCase,FSTestCases,ThreadingTestCases): ...@@ -36,7 +36,7 @@ class TestSubFS(unittest.TestCase,FSTestCases,ThreadingTestCases):
def setUp(self): def setUp(self):
sys.setcheckinterval(1) sys.setcheckinterval(1)
self.temp_dir = tempfile.mkdtemp("fstest") self.temp_dir = tempfile.mkdtemp(u"fstest")
self.parent_fs = osfs.OSFS(self.temp_dir) self.parent_fs = osfs.OSFS(self.temp_dir)
self.parent_fs.makedir("foo/bar", recursive=True) self.parent_fs.makedir("foo/bar", recursive=True)
self.fs = self.parent_fs.opendir("foo/bar") self.fs = self.parent_fs.opendir("foo/bar")
......
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